From 333b695b16e8d714fd426281f8259159b7fafe9f Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Sun, 22 Jan 2023 19:18:10 +0200 Subject: [PATCH] lint --- plugins/in-app-menu/front.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/in-app-menu/front.js b/plugins/in-app-menu/front.js index e597a5e9..17c89d4e 100644 --- a/plugins/in-app-menu/front.js +++ b/plugins/in-app-menu/front.js @@ -49,11 +49,8 @@ module.exports = (options) => { function setupSearchOpenObserver() { const searchOpenObserver = new MutationObserver(mutations => { - if (mutations[0].target.opened) { - $('#nav-bar-background').style.webkitAppRegion = 'no-drag' - } else { - $('#nav-bar-background').style.webkitAppRegion = 'drag' - } + $('#nav-bar-background').style.webkitAppRegion = + mutations[0].target.opened ? 'no-drag' : 'drag'; }); searchOpenObserver.observe($('ytmusic-search-box'), { attributeFilter: ["opened"] }) }