Fix sidebar not opening when lounge is open in a background tab
This commit is contained in:
parent
674d9cfbd8
commit
cf0a4999e9
@ -70,7 +70,7 @@ export default {
|
||||
return tommorow - today;
|
||||
},
|
||||
prepareOpenStates() {
|
||||
const viewportWidth = window.outerWidth;
|
||||
const viewportWidth = window.innerWidth;
|
||||
let isUserlistOpen = storage.get("thelounge.state.userlist");
|
||||
|
||||
if (viewportWidth > constants.mobileViewportPixels) {
|
||||
|
@ -69,7 +69,7 @@ const vueApp = new Vue({
|
||||
store.watch(
|
||||
(state) => state.sidebarOpen,
|
||||
(sidebarOpen) => {
|
||||
if (window.outerWidth > constants.mobileViewportPixels) {
|
||||
if (window.innerWidth > constants.mobileViewportPixels) {
|
||||
storage.set("thelounge.state.sidebar", sidebarOpen);
|
||||
vueApp.$emit("resize");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user