web-manager 4.0.12 → 4.0.14
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/index.js +4 -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
|
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
|
|
@@ -394,7 +395,8 @@ class Manager {
|
|
394
395
|
|
395
396
|
urlObj.hostname = hostnameParts.join('.');
|
396
397
|
|
397
|
-
|
398
|
+
// Strip trailing slash
|
399
|
+
return urlObj.toString().replace(/\/$/, '');
|
398
400
|
}
|
399
401
|
|
400
402
|
isValidRedirectUrl(url) {
|
package/package.json
CHANGED