Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/browser-utils

Package Overview
Dependencies
Maintainers
16
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/browser-utils - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

browser-utils.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc