clean up
This commit is contained in:
@@ -51,7 +51,7 @@ function changeDownloadButton(action, text) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
document.addEventListener("keydown", function (event) {
|
||||
document.addEventListener("keydown", (event) => {
|
||||
if (event.key == "Tab") {
|
||||
eid("download-button").value = '>>'
|
||||
eid("download-button").style.padding = '0 1rem'
|
||||
@@ -257,7 +257,7 @@ async function download(url) {
|
||||
}
|
||||
}).catch((error) => internetError());
|
||||
}
|
||||
window.onload = function () {
|
||||
window.onload = () => {
|
||||
loadSettings();
|
||||
detectColorScheme();
|
||||
changeDownloadButton(0, '>>');
|
||||
@@ -274,6 +274,6 @@ window.onload = function () {
|
||||
eid("url-input-area").addEventListener("keyup", (event) => {
|
||||
if (event.key === 'Enter') eid("download-button").click();
|
||||
})
|
||||
document.onkeydown = function(event) {
|
||||
document.onkeydown = (event) => {
|
||||
if (event.key === 'Escape') hideAllPopups();
|
||||
};
|
||||
Reference in New Issue
Block a user