1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 22:38:30 +09:00
* Fix #4300

* sidebar
This commit is contained in:
MeiMei 2019-02-17 23:40:00 +09:00 committed by syuilo
parent 0902727d1c
commit 03e2c7eec6
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() {