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 35a9806 commit 83a908f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ askOnCloseButton.value = askOnClose;
document.getElementById('askOnClose').addEventListener('change', askOnCloseSwitchFunction);

function askOnCloseSwitchFunction() {
showToast('Settings updated.', '#', 'green', 2000);
localStorage.setItem("askOnClose", document.getElementById('askOnClose').value);
}

Expand Down

0 comments on commit 83a908f

Please sign in to comment.