Merge pull request #3546 from thelounge/xpaw/fix-sidebar-closing
Fix sidebar not opening when lounge is open in a background tab
This commit is contained in:
commit
4ef5c66fd6
@ -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