Merge pull request #1929 from Safelite/feature/CSR-2130
Feature/csr 2130
This commit is contained in:
commit
60dee56061
1 changed files with 4 additions and 3 deletions
|
|
@ -201,9 +201,10 @@ export default {
|
||||||
return formValidateResponse?.valid;
|
return formValidateResponse?.valid;
|
||||||
},
|
},
|
||||||
showApplePay() {
|
showApplePay() {
|
||||||
if (window.ApplePaySession && window.ApplePaySession.canMakePayments()) {
|
var iOSversion = this.getiOSversion();
|
||||||
var iOSversion = this.getiOSversion();
|
var isMacOS = navigator.platform.indexOf("Mac") !== -1;
|
||||||
if (iOSversion && iOSversion[0] >= 17) {
|
if (isMacOS || (iOSversion && iOSversion[0] >= 17)) {
|
||||||
|
if (window.ApplePaySession && window.ApplePaySession.canMakePayments()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue