summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/script.ts
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-02-17 23:40:00 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-02-17 23:40:00 +0900
commit03e2c7eec60df3d03b0ba340263bb9ec6c94309d (patch)
tree7b17029f4a3417fd99acc4c8fdbdb0dd3524cc74 /src/client/app/desktop/script.ts
parentUpdate @types/node requirement from 10.12.21 to 10.12.24 (#4231) (diff)
downloadsharkey-03e2c7eec60df3d03b0ba340263bb9ec6c94309d.tar.gz
sharkey-03e2c7eec60df3d03b0ba340263bb9ec6c94309d.tar.bz2
sharkey-03e2c7eec60df3d03b0ba340263bb9ec6c94309d.zip
Fix #4300 (#4304)
* Fix #4300 * sidebar
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