@product7/product7-js 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/product7-js.js
CHANGED
|
@@ -1024,13 +1024,7 @@
|
|
|
1024
1024
|
if (!env || env === 'production') {
|
|
1025
1025
|
const hostname =
|
|
1026
1026
|
(typeof window !== 'undefined' && window.location?.hostname) || '';
|
|
1027
|
-
|
|
1028
|
-
hostname === 'localhost' ||
|
|
1029
|
-
hostname === '127.0.0.1' ||
|
|
1030
|
-
/^192\.168\./.test(hostname) ||
|
|
1031
|
-
/^10\./.test(hostname) ||
|
|
1032
|
-
/^172\.(1[6-9]|2\d|3[01])\./.test(hostname);
|
|
1033
|
-
if (hostname.includes('staging') || isLocal) {
|
|
1027
|
+
if (hostname.includes('staging')) {
|
|
1034
1028
|
env = 'staging';
|
|
1035
1029
|
}
|
|
1036
1030
|
}
|
|
@@ -13917,12 +13911,7 @@
|
|
|
13917
13911
|
|
|
13918
13912
|
const hostname = window.location.hostname.toLowerCase();
|
|
13919
13913
|
|
|
13920
|
-
if (
|
|
13921
|
-
hostname.includes('staging') ||
|
|
13922
|
-
hostname.includes('localhost') ||
|
|
13923
|
-
hostname.includes('127.0.0.1') ||
|
|
13924
|
-
hostname.includes('.local')
|
|
13925
|
-
) {
|
|
13914
|
+
if (hostname.includes('staging')) {
|
|
13926
13915
|
return 'staging';
|
|
13927
13916
|
}
|
|
13928
13917
|
|