summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/script.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/desktop/script.ts')
-rw-r--r--src/client/app/desktop/script.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts
index 6957f34d75..c66171e3af 100644
--- a/src/client/app/desktop/script.ts
+++ b/src/client/app/desktop/script.ts
@@ -126,7 +126,8 @@ init(async (launch, os) => {
os.store.commit('device/set', {
key: 'inDeckMode',
- value: os.store.getters.isSignedIn && os.store.state.device.deckMode && document.location.pathname === '/'
+ value: os.store.getters.isSignedIn && os.store.state.device.deckMode
+ && (document.location.pathname === '/' || window.performance.navigation.type === 1)
});
// Init router