diff --git a/chrome/favorites.js b/chrome/favorites.js index d710861..f9d8e52 100644 --- a/chrome/favorites.js +++ b/chrome/favorites.js @@ -85,7 +85,7 @@ chrome.storage.sync.get({ export: true, export_animation: true }, results => { popup.style.opacity = 1 } popup.style.visibility = "visible" - function hide_popup_menu(e){ + function hide_popup_menu(event){ let path = event.path || (event.composedPath && event.composedPath()); if (!path.includes(popup)){ if (results.export_animation){ diff --git a/chrome/myscript.js b/chrome/myscript.js index 9247a45..8969aa8 100644 --- a/chrome/myscript.js +++ b/chrome/myscript.js @@ -367,7 +367,7 @@ function script(chrome_i18n) { } } } - function hide_download_menu(e){ + function hide_download_menu(event){ let div = document.getElementById("downloadMenu") let path = event.path || (event.composedPath && event.composedPath()); if (!path.includes(div)){ diff --git a/github/hdrezka_helper_ipad.user.js b/github/hdrezka_helper_ipad.user.js index 08e017b..900b802 100644 --- a/github/hdrezka_helper_ipad.user.js +++ b/github/hdrezka_helper_ipad.user.js @@ -725,7 +725,7 @@ async function downloader_wrap(){ } } } - function hide_download_menu(e){ + function hide_download_menu(event){ let div = document.getElementById("downloadMenu") let path = event.path || (event.composedPath && event.composedPath()); if (!path.includes(div)){ @@ -907,7 +907,7 @@ function exportFavorites(){ popup.style.opacity = 1 } popup.style.visibility = "visible" - function hide_popup_menu(e){ + function hide_popup_menu(event){ let path = event.path || (event.composedPath && event.composedPath()); if (!path.includes(popup)){ if (db_get('export_animation', true)){ diff --git a/hdrezka_helper.user.js b/hdrezka_helper.user.js index 3ad434f..e4e701c 100644 --- a/hdrezka_helper.user.js +++ b/hdrezka_helper.user.js @@ -703,7 +703,7 @@ async function downloader(){ } } } - function hide_download_menu(e){ + function hide_download_menu(event){ let div = document.getElementById("downloadMenu") let path = event.path || (event.composedPath && event.composedPath()); if (!path.includes(div)){ @@ -885,7 +885,7 @@ function exportFavorites(){ popup.style.opacity = 1 } popup.style.visibility = "visible" - function hide_popup_menu(e){ + function hide_popup_menu(event){ let path = event.path || (event.composedPath && event.composedPath()); if (!path.includes(popup)){ if (db_get('export_animation', true)){