mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 23:54:55 +01:00
Fix account loading error on try.
This commit is contained in:
parent
d22096cd83
commit
a8155fc06e
@ -23,7 +23,7 @@ export default abstract class AppI18n {
|
|||||||
|
|
||||||
public static getUserLocale(): Locale {
|
public static getUserLocale(): Locale {
|
||||||
// @Todo Hack: Try page must not account info. Add this to avoid 403 errors.
|
// @Todo Hack: Try page must not account info. Add this to avoid 403 errors.
|
||||||
const isTryPage = window.location.href.endsWith('/try');
|
const isTryPage = window.location.pathname.endsWith('/try');
|
||||||
let result: Locale;
|
let result: Locale;
|
||||||
if (!isTryPage) {
|
if (!isTryPage) {
|
||||||
const account = fetchAccount();
|
const account = fetchAccount();
|
||||||
|
Loading…
Reference in New Issue
Block a user