mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Don't show apple pay if not supported
This commit is contained in:
parent
3875294b7a
commit
4d5ec46ab9
@ -20,7 +20,6 @@
|
|||||||
background-color: #f8f8f8;
|
background-color: #f8f8f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.dropdown-menu li a{
|
.dropdown-menu li a{
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
margin-top:5px;
|
margin-top:5px;
|
||||||
@ -137,11 +136,8 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
// Check the availability of the Payment Request API first.
|
// Check the availability of the Payment Request API first.
|
||||||
paymentRequest.canMakePayment().then(function(result) {
|
paymentRequest.canMakePayment().then(function(result) {
|
||||||
if (result) {
|
if (! result) {
|
||||||
// do nothing
|
$('#paymentButtons ul.dropdown-menu li').find('a[href$="apple_pay"]').remove();
|
||||||
} else {
|
|
||||||
console.log('not supported');
|
|
||||||
//$('#paymentButtons ul.dropdown-menu li').last().remove();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user