Skip to content
Snippets Groups Projects
Commit 03e2c7ee authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

Fix #4300 (#4304)

* Fix #4300

* sidebar
parent 0902727d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -166,7 +166,7 @@ export default Vue.extend({
},
toggleDeckMode() {
this.$store.commit('device/set', { key: 'deckMode', value: !this.$store.state.device.inDeckMode });
location.reload();
location.replace('/');
},
}
});
......
......@@ -122,7 +122,7 @@ export default Vue.extend({
methods: {
toggleDeckMode(deck) {
this.$store.commit('device/set', { key: 'deckMode', value: deck });
location.reload();
location.replace('/');
},
onReversiInvited() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment