@shopify/app-bridge
Advanced tools
Comparing version 3.6.0-snapshot-20221220190552 to 3.6.0
@@ -8,2 +8,3 @@ "use strict"; | ||
var helper_1 = require("../helper"); | ||
var platform_1 = require("../../utilities/platform"); | ||
var Action; | ||
@@ -76,9 +77,3 @@ (function (Action) { | ||
var untypedWindow = window; | ||
// This logic is copied from app-bridge-utils/utilities/platform.ts | ||
// Once we're ready to deprecate app-bridge-utils, we can refactor this | ||
var isMobile = typeof navigator !== 'undefined' && | ||
(navigator.userAgent.indexOf('Shopify Mobile') >= 0 || | ||
navigator.userAgent.indexOf('Shopify POS') >= 0 || | ||
navigator.userAgent.indexOf('Shopify Ping') >= 0); | ||
if (env_1.isServer || (env_1.isClient && untypedWindow.__is_web_vitals_initialized__) || isMobile) { | ||
if (env_1.isServer || (env_1.isClient && untypedWindow.__is_web_vitals_initialized__) || platform_1.isMobile()) { | ||
// We need to prevent the Web Vitals functions from being called more than once per page load, | ||
@@ -85,0 +80,0 @@ // which can cause a memory leak as per the web-vitals docs. |
{ | ||
"name": "@shopify/app-bridge", | ||
"version": "3.6.0-snapshot-20221220190552", | ||
"version": "3.6.0", | ||
"types": "index.d.ts", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
939379
77510
20833
0