Fix account loading error on try.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-09 08:46:17 -07:00
parent d22096cd83
commit a8155fc06e

View File

@ -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();