From 372da0a041d35717397c7093c47e9a5b00602be9 Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Sun, 28 Nov 2021 23:12:43 -0500 Subject: [PATCH] Add safety around refresh to update --- src/functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions.js b/src/functions.js index 4090866..b7317c0 100644 --- a/src/functions.js +++ b/src/functions.js @@ -1161,7 +1161,9 @@ function show_about_paint(){ $("#refresh-to-update").on("click", (event)=> { event.preventDefault(); - location.reload(); + are_you_sure(() => { + location.reload(); + }); }); $("#view-project-news").on("click", () => {