Skip to content

Commit

Permalink
Update settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaTheLEGEND authored Sep 22, 2023
1 parent 8e8e52a commit 35a9806
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ document.getElementById('backend-set').addEventListener('click', setNewBackend);

// start config for "ask before closing" button

var askOnClose = localStorage.getItem("askOnClose")
var askOnCloseButton = document.getElementById("askOnClose")
var askOnClose = localStorage.getItem("askOnClose");
var askOnCloseButton = document.getElementById("askOnClose");

askOnCloseButton.value = askOnClose;

document.getElementById('askOnClose').addEventListener('change', askoncloseSwitchFunction);
document.getElementById('askOnClose').addEventListener('change', askOnCloseSwitchFunction);

function askoncloseSwitchFunction() {
localstorage.setItem("askOnClose", document.getElementById('askOnClose').value);
function askOnCloseSwitchFunction() {
localStorage.setItem("askOnClose", document.getElementById('askOnClose').value);
}


Expand Down

0 comments on commit 35a9806

Please sign in to comment.