apply fix from eslint

This commit is contained in:
JellyBrick
2023-08-29 19:14:51 +09:00
parent c722896a73
commit 897cfd3c7d
33 changed files with 471 additions and 524 deletions

View File

@ -8,7 +8,7 @@ function $(selector) {
return document.querySelector(selector);
}
module.exports = (options) => {
module.exports = () => {
const visible = () => Boolean($('.cet-menubar').firstChild);
const bar = new Titlebar({
icon: 'https://cdn-icons-png.flaticon.com/512/5358/5358672.png',
@ -38,7 +38,7 @@ module.exports = (options) => {
});
if (isEnabled('picture-in-picture')) {
ipcRenderer.on('pip-toggle', (_, pipEnabled) => {
ipcRenderer.on('pip-toggle', () => {
bar.refreshMenu();
});
}
@ -62,7 +62,7 @@ function setupSearchOpenObserver() {
}
function setupMenuOpenObserver() {
const menuOpenObserver = new MutationObserver((mutations) => {
const menuOpenObserver = new MutationObserver(() => {
$('#nav-bar-background').style.webkitAppRegion
= [...$('.cet-menubar').childNodes].some((c) => c.classList.contains('open'))
? 'no-drag' : 'drag';