web-manager 4.0.12 → 4.0.13

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/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -382,7 +382,8 @@ class Manager {
382
382
  return 'http://localhost:5002';
383
383
  }
384
384
 
385
- const baseUrl = url || this.config.firebase.app.config.authDomain || window.location.origin;
385
+ const authDomain = this.config.firebase.app.config.authDomain;
386
+ const baseUrl = url || (authDomain ? `https://${authDomain}` : window.location.origin);
386
387
  const urlObj = new URL(baseUrl);
387
388
  const hostnameParts = urlObj.hostname.split('.');
388
389
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "4.0.12",
3
+ "version": "4.0.13",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",