1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Don't show apple pay if not supported

This commit is contained in:
Hillel Coren 2018-01-15 22:43:30 +02:00
parent 3875294b7a
commit 4d5ec46ab9

View File

@ -20,7 +20,6 @@
background-color: #f8f8f8;
}
.dropdown-menu li a{
overflow:hidden;
margin-top:5px;
@ -137,11 +136,8 @@
$(function() {
// Check the availability of the Payment Request API first.
paymentRequest.canMakePayment().then(function(result) {
if (result) {
// do nothing
} else {
console.log('not supported');
//$('#paymentButtons ul.dropdown-menu li').last().remove();
if (! result) {
$('#paymentButtons ul.dropdown-menu li').find('a[href$="apple_pay"]').remove();
}
});