Navigation Menu

Skip to content

Commit

Permalink
Add notification when reverting to default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andryou committed Dec 5, 2017
1 parent dcdce57 commit dd0c262
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/options.js
Expand Up @@ -54,11 +54,13 @@ document.addEventListener('DOMContentLoaded', function () {
$("#restoredefault").click(function() {
if (confirm(bkg.getLocale("restoredefaultconfirm"))) {
bkg.setDefaultOptions(1);
notification(bkg.getLocale("settingssave"));
}
});
$("#restoredefault2").click(function() {
if (confirm(bkg.getLocale("restoredefaultconfirm2"))) {
bkg.setDefaultOptions(2);
notification(bkg.getLocale("settingssave"));
}
});
syncstatus = localStorage['syncenable'];
Expand Down

0 comments on commit dd0c262

Please sign in to comment.