[feature] adding data wipe

This commit is contained in:
zombieFox 2018-12-26 08:24:52 -07:00
parent 213b23cb46
commit 1bbaba886a
1 changed files with 5 additions and 0 deletions

View File

@ -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
};