From 4d5ec46ab9a68725253173ec3efdcc8ba45ad7d6 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 15 Jan 2018 22:43:30 +0200 Subject: [PATCH] Don't show apple pay if not supported --- resources/views/invoices/view.blade.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/views/invoices/view.blade.php b/resources/views/invoices/view.blade.php index 47c0ba857f..4e2cf50dfb 100644 --- a/resources/views/invoices/view.blade.php +++ b/resources/views/invoices/view.blade.php @@ -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(); } });