@vaadin/browser-utils
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,3 @@ | ||
export declare const observeIosNavbar: () => void; | ||
export declare const isIOS: boolean; | ||
export declare const observeIosNavbar: (force?: boolean | undefined) => void; | ||
//# sourceMappingURL=browser-utils.d.ts.map |
// See https://stackoverflow.com/a/58064481 | ||
const isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || | ||
export const isIOS = /iPad|iPhone|iPod/.test(navigator.platform) || | ||
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1); | ||
@@ -18,4 +18,4 @@ let observed = false; | ||
}; | ||
export const observeIosNavbar = () => { | ||
if (isIOS && !observed) { | ||
export const observeIosNavbar = (force) => { | ||
if ((force || isIOS) && !observed) { | ||
observed = true; | ||
@@ -22,0 +22,0 @@ detectIosNavbar(); |
{ | ||
"name": "@vaadin/browser-utils", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Vaadin Ltd", | ||
@@ -20,3 +20,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "ff5f69931daced1cb7176b7774547752c1c982c7" | ||
"gitHead": "12e4e5d751b9de2eea35db48eeda778f307876ec" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3674
26