@fastr-pro/global-header 1.0.15 → 1.0.16
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3435,8 +3435,8 @@ function Gt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
|
|
|
3435
3435
|
if (g !== void 0 || P.user !== void 0) return;
|
|
3436
3436
|
let e = () => {
|
|
3437
3437
|
if (ge(null), ue && typeof window < "u" && L) {
|
|
3438
|
-
let e = window.location.href
|
|
3439
|
-
window.location.assign(
|
|
3438
|
+
let e = window.location.href, t = encodeURIComponent(e), n = `${L}/login?app_id=${encodeURIComponent(F || "")}&p_screen=${t}&redirect=${t}`;
|
|
3439
|
+
window.location.assign(n);
|
|
3440
3440
|
}
|
|
3441
3441
|
};
|
|
3442
3442
|
if (typeof R == "function") _e(!0), Promise.resolve(R()).then((t) => {
|
|
@@ -3465,7 +3465,8 @@ function Gt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
|
|
|
3465
3465
|
R,
|
|
3466
3466
|
I,
|
|
3467
3467
|
L,
|
|
3468
|
-
ue
|
|
3468
|
+
ue,
|
|
3469
|
+
F
|
|
3469
3470
|
]);
|
|
3470
3471
|
let B = g === void 0 ? P.user === void 0 ? me : P.user : g, [ye, V] = o(() => Array.isArray(k) && k.length > 0 ? k : Ut || Pt);
|
|
3471
3472
|
r(() => {
|
|
@@ -3641,8 +3642,8 @@ function Gt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
|
|
|
3641
3642
|
try {
|
|
3642
3643
|
localStorage.removeItem("user"), localStorage.removeItem("token"), localStorage.removeItem("auth_token"), sessionStorage.removeItem("user"), sessionStorage.removeItem("token"), sessionStorage.removeItem("auth_token");
|
|
3643
3644
|
} catch {}
|
|
3644
|
-
let e = window.location.href, t = `${L}/logout?
|
|
3645
|
-
window.location.assign(
|
|
3645
|
+
let e = window.location.href, t = encodeURIComponent(e), n = `${L}/logout?app_id=${encodeURIComponent(F || "")}&p_screen=${t}&redirect=${t}`;
|
|
3646
|
+
window.location.assign(n);
|
|
3646
3647
|
}
|
|
3647
3648
|
}, Ge = i(() => {
|
|
3648
3649
|
if (se) return se;
|