mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 11:43:48 +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 {
|
||||
// @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;
|
||||
if (!isTryPage) {
|
||||
const account = fetchAccount();
|
||||
|
Loading…
Reference in New Issue
Block a user