diff options
Diffstat (limited to 'js/options')
| -rw-r--r-- | js/options/general.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/options/general.js b/js/options/general.js index f95ba04f..c0652269 100644 --- a/js/options/general.js +++ b/js/options/general.js @@ -37,6 +37,13 @@ $(function(){ document.location.reload(); }); + $("<button>"+_("Erase")+"</button>").appendTo(stor).on("click", function() { + if (confirm(_("Are you sure you want to erase your storage? This involves your hidden threads, watched threads, post password and many more."))) { + localStorage.clear(); + document.location.reload(); + } + }); + $("#style-select").detach().css({float:"none","margin-bottom":0}).appendTo(tab.content); }); |
