From 1bbaba886a94da0786b0abef0e6bd61e5991cf56 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Wed, 26 Dec 2018 08:24:52 -0700 Subject: [PATCH] [feature] adding data wipe --- js/data.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/data.js b/js/data.js index 517bcc7d..8f00b3c1 100644 --- a/js/data.js +++ b/js/data.js @@ -26,6 +26,10 @@ var data = (function() { console.log(saveName + " restored"); }; + var wipe = function() { + clear(saveName); + }; + var init = function() { if (get(saveName)) { restore(); @@ -40,6 +44,7 @@ var data = (function() { clear: clear, set: set, get: get, + wipe: wipe, restore: restore };