mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
lint
This commit is contained in:
@ -49,11 +49,8 @@ module.exports = (options) => {
|
|||||||
|
|
||||||
function setupSearchOpenObserver() {
|
function setupSearchOpenObserver() {
|
||||||
const searchOpenObserver = new MutationObserver(mutations => {
|
const searchOpenObserver = new MutationObserver(mutations => {
|
||||||
if (mutations[0].target.opened) {
|
$('#nav-bar-background').style.webkitAppRegion =
|
||||||
$('#nav-bar-background').style.webkitAppRegion = 'no-drag'
|
mutations[0].target.opened ? 'no-drag' : 'drag';
|
||||||
} else {
|
|
||||||
$('#nav-bar-background').style.webkitAppRegion = 'drag'
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
searchOpenObserver.observe($('ytmusic-search-box'), { attributeFilter: ["opened"] })
|
searchOpenObserver.observe($('ytmusic-search-box'), { attributeFilter: ["opened"] })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user