aboutsummaryrefslogtreecommitdiffhomepage
path: root/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'script.js')
-rw-r--r--script.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/script.js b/script.js
index e3ab6e7..4c1ec73 100644
--- a/script.js
+++ b/script.js
@@ -302,3 +302,14 @@ window.github.addEventListener("click", () => {
window.support.addEventListener("click", () => {
window.open("https://ko-fi.com/marvinborner", "_blank");
});
+
+window.restart.addEventListener("click", () => {
+ if (
+ !confirm(
+ "Are you sure you want to restart? You will lose your entire inventory.",
+ )
+ )
+ return;
+ localStorage.clear();
+ window.location.reload();
+});