mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-25 03:51:28 +02:00
[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…
x
Reference in New Issue
Block a user