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', {
|
os.store.commit('device/set', {
|
||||||
key: 'inDeckMode',
|
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
|
// Init router
|
||||||
|
|
|
@ -166,7 +166,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
toggleDeckMode() {
|
toggleDeckMode() {
|
||||||
this.$store.commit('device/set', { key: 'deckMode', value: !this.$store.state.device.inDeckMode });
|
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: {
|
methods: {
|
||||||
toggleDeckMode(deck) {
|
toggleDeckMode(deck) {
|
||||||
this.$store.commit('device/set', { key: 'deckMode', value: deck });
|
this.$store.commit('device/set', { key: 'deckMode', value: deck });
|
||||||
location.reload();
|
location.replace('/');
|
||||||
},
|
},
|
||||||
|
|
||||||
onReversiInvited() {
|
onReversiInvited() {
|
||||||
|
|
Loading…
Reference in a new issue