web-manager 3.1.23 → 3.1.24

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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -474,9 +474,11 @@ function Manager() {
474
474
  This.properties.page.status.initializing = true;
475
475
 
476
476
  // set other properties
477
- This.properties.meta.environment = /((:\/\/)(local|127\.|192\.|.+ngrok\.))/.test(window.location.href) ? 'development' : 'production';
478
-
477
+ This.properties.meta.environment = window.location.host.match(/:40|ngrok/)
478
+ ? 'development'
479
+ : 'production';
479
480
 
481
+ // Load polyfills
480
482
  init_loadPolyfills(This, configuration, function() {
481
483
  This.properties.page.status.initializing = false;
482
484
  // This.properties.genericPromise = new Promise(resolve => { resolve() });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.23",
3
+ "version": "3.1.24",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,4 +28,4 @@
28
28
  "firebase": "^8.10.1",
29
29
  "lazysizes": "^5.3.2"
30
30
  }
31
- }
31
+ }