From f6f5a5dd61b342f3f8b4b66862004da9dbf81f60 Mon Sep 17 00:00:00 2001 From: Luis Kriner Date: Fri, 22 Nov 2024 09:28:18 +0100 Subject: [PATCH] formatted correctly --- .../javascripts/Controllers/PaneController/PaneController.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web/src/javascripts/Controllers/PaneController/PaneController.ts b/packages/web/src/javascripts/Controllers/PaneController/PaneController.ts index 248a5383bdd..589c1c600b3 100644 --- a/packages/web/src/javascripts/Controllers/PaneController/PaneController.ts +++ b/packages/web/src/javascripts/Controllers/PaneController/PaneController.ts @@ -93,7 +93,6 @@ export class PaneController extends AbstractViewController implements InternalEv this.setCurrentNavPanelWidth(preferences.getValue(PrefKey.TagsPanelWidth, MinimumNavPanelWidth)) this.setCurrentItemsPanelWidth(preferences.getValue(PrefKey.NotesPanelWidth, MinimumNotesPanelWidth)) - const mediaQuery = window.matchMedia(MediaQueryBreakpoints.md) if (mediaQuery?.addEventListener != undefined) { mediaQuery.addEventListener('change', this.mediumScreenMQHandler) @@ -151,7 +150,7 @@ export class PaneController extends AbstractViewController implements InternalEv LocalPrefDefaults[LocalPrefKey.NavigationPaneCollapsed], ) - if(!this.hasPaneInitializationLogicRun) { + if (!this.hasPaneInitializationLogicRun) { const screen = this._isTabletOrMobileScreen.execute().getValue() if (screen.isTabletOrMobile) { this.panes = [AppPaneId.Navigation, AppPaneId.Items]