diff --git a/package.json b/package.json index 8df5c73..1aaf9a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "capacitor-app", - "version": "1.0.0", + "name": "Forum", + "version": "1.0.1", "description": "An Amazing Capacitor App", "type": "module", "keywords": [ diff --git a/readme.md b/readme.md index 63b9182..3c0235f 100644 --- a/readme.md +++ b/readme.md @@ -44,7 +44,7 @@ This option should be at the top level of capacitor.config.json Add "https://frm.so" to VITE_API_URL in .env.development ### iOS: Prod Frontend and Prod Backend (frm.so) -Remove the "server" object from capacitor.config +Remove the "server" object from capacitor.config. ### Various Commands npx cap config - this will list the full configuration currently being used diff --git a/src/index.html b/src/index.html index 21b3a99..be7b3b8 100644 --- a/src/index.html +++ b/src/index.html @@ -9,16 +9,6 @@ /> - - - - diff --git a/src/index.js b/src/index.js deleted file mode 100644 index 71dc997..0000000 --- a/src/index.js +++ /dev/null @@ -1,34 +0,0 @@ -import util from "./util.js" - -window.__util = util - -async function getProfile() { - try { - const res = await util.authFetch(`${util.HOST}/auth/profile`, { - method: "GET", - headers: { "Accept": "application/json" } - }); - if (res.status === 401) return 401; - if (!res.ok) return res.status; - return { status: 200, profile: await res.json() }; - } catch { - return 500; - } -} - -async function init() { - await import(`${util.HOST}/shell/Shell.js`) - - const result = await getProfile() - - if (result === 401) { - window.AuthPage() - } else if (result === 500) { - window.ConnectionError() - } else { - window.__profile = result.profile - window.Home() - } -} - -init() \ No newline at end of file