Don't show apple pay if not supported
This commit is contained in:
parent
3875294b7a
commit
4d5ec46ab9
1 changed files with 2 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue