[feature] adding data wipe
This commit is contained in:
parent
213b23cb46
commit
1bbaba886a
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue