forked from FoundKeyGang/FoundKey
parent
0902727d1c
commit
03e2c7eec6
3 changed files with 4 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue