diff --git a/src/routes/_pages/settings/instances/add.html b/src/routes/_pages/settings/instances/add.html index 15a063e..e309267 100644 --- a/src/routes/_pages/settings/instances/add.html +++ b/src/routes/_pages/settings/instances/add.html @@ -3,11 +3,11 @@
- {#if !hasIndexedDB} + {#if !hasIndexedDB || !hasLocalStorage} {/if} @@ -77,7 +77,7 @@ import { store } from '../../../_store/store' import { logInToInstance, handleOauthCode } from '../../../_actions/addInstance' import ExternalLink from '../../../_components/ExternalLink.html' - import { testHasIndexedDB } from '../../../_utils/testStorage' + import { testHasIndexedDB, testHasLocalStorage } from '../../../_utils/testStorage' export default { async oncreate () { @@ -85,8 +85,10 @@ if (codeMatch) { return handleOauthCode(codeMatch[1]) } - let hasIndexedDB = await testHasIndexedDB() - this.set({ hasIndexedDB }) + this.set({ + hasIndexedDB: await testHasIndexedDB(), + hasLocalStorage: testHasLocalStorage() + }) }, components: { SettingsLayout, @@ -94,7 +96,8 @@ }, store: () => store, data: () => ({ - hasIndexedDB: true + hasIndexedDB: true, + hasLocalStorage: true }), methods: { onSubmit (event) {