diff --git a/packages/frontend/src/boot/main-boot.ts b/packages/frontend/src/boot/main-boot.ts index 2bf902947992..2187acd851ce 100644 --- a/packages/frontend/src/boot/main-boot.ts +++ b/packages/frontend/src/boot/main-boot.ts @@ -46,7 +46,8 @@ export async function mainBoot() { let reloadDialogShowing = false; stream.on('_disconnected_', async () => { - if (defaultStore.state.serverDisconnectedBehavior === 'reload') { + if (defaultStore.state.serverDisconnectedBehavior === 'disabled') return; + else if (defaultStore.state.serverDisconnectedBehavior === 'reload') { location.reload(); } else if (defaultStore.state.serverDisconnectedBehavior === 'dialog') { if (reloadDialogShowing) return; diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index 1bfdfd0e7665..63127cc8a3fd 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -176,6 +176,7 @@ SPDX-License-Identifier: AGPL-3.0-only + diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index 1e5765e71e6a..3ae086c33dab 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -212,7 +212,7 @@ export const defaultStore = markRaw(new Storage('base', { }, serverDisconnectedBehavior: { where: 'device', - default: 'quiet' as 'quiet' | 'reload' | 'dialog', + default: 'quiet' as 'quiet' | 'reload' | 'dialog' | 'disabled', }, nsfw: { where: 'device',