* Fix #4300

* sidebar
This commit is contained in:
MeiMei 2019-02-17 23:40:00 +09:00 committed by syuilo
parent 422f036264
commit bc796a476b
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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('/');
},
}
});

View file

@ -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() {