feat: get country from timezone

This commit is contained in:
2023-11-05 13:48:33 +09:00
parent d59c3ebdcb
commit b3c8ee982d
3 changed files with 437 additions and 2 deletions

View File

@ -24,7 +24,7 @@ import { removeUndefined, throwIfOffline } from "@snort/shared";
import * as serviceWorkerRegistration from "serviceWorkerRegistration";
import { IntlProvider } from "IntlProvider";
import { unwrap } from "SnortUtils";
import { getCountry, unwrap } from "SnortUtils";
import Layout from "Pages/Layout";
import LoginPage from "Pages/LoginPage";
import ProfilePage from "Pages/Profile/ProfilePage";
@ -128,6 +128,8 @@ export const ProfileLoader = new ProfileLoaderService(System, UserCache);
serviceWorkerRegistration.register();
async function initSite() {
console.debug(getCountry())
if (hasWasm) {
await wasmInit(WasmPath);
}