Skip to content

Commit

Permalink
ci: check in dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
wsbrunson committed Feb 14, 2024
1 parent 0033c21 commit 6ab5b44
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions dist/belter.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
__webpack_require__.d(__webpack_exports__, "isSafari", (function() {
return isSafari;
}));
__webpack_require__.d(__webpack_exports__, "isIpadOs", (function() {
return isIpadOs;
}));
__webpack_require__.d(__webpack_exports__, "isApplePaySupported", (function() {
return isApplePaySupported;
}));
Expand Down Expand Up @@ -956,6 +959,10 @@
void 0 === ua && (ua = getUserAgent());
return /Safari/.test(ua) && !isChrome(ua) && !/Silk|FxiOS|EdgiOS/.test(ua);
}
function isIpadOs(ua) {
void 0 === ua && (ua = getUserAgent());
return !(/iPhone|iPod/.test(ua) || !(/iPad/.test(ua) || isSafari(ua) && navigator.maxTouchPoints >= 1));
}
function isApplePaySupported() {
try {
if (window.ApplePaySession && window.ApplePaySession.supportsVersion(3) && window.ApplePaySession.canMakePayments()) return !0;
Expand Down
2 changes: 1 addition & 1 deletion dist/belter.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/belter.min.js.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions dist/module/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,17 @@ export function isSafari(ua) {
}
return /Safari/.test(ua) && !isChrome(ua) && !/Silk|FxiOS|EdgiOS/.test(ua);
}
export function isIpadOs(ua) {
if (ua === void 0) {
ua = getUserAgent();
}
if (!/iPhone|iPod/.test(ua)) {
if (/iPad/.test(ua) || isSafari(ua) && navigator.maxTouchPoints >= 1) {
return true;
}
}
return false;
}
export function isApplePaySupported() {
try {
if (window.ApplePaySession && window.ApplePaySession.supportsVersion(3) && window.ApplePaySession.canMakePayments()) {
Expand Down

0 comments on commit 6ab5b44

Please sign in to comment.