mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-24 17:14:28 +01:00
[bug] improve demo page check when saving data
This commit is contained in:
parent
6d2380714f
commit
26ef4d7209
15
js/data.js
15
js/data.js
@ -15,15 +15,16 @@ var data = (function() {
|
||||
};
|
||||
|
||||
var save = function() {
|
||||
var data = {
|
||||
version: version.get(),
|
||||
state: state.get(),
|
||||
bookmarks: bookmarks.get()
|
||||
};
|
||||
if ("runtime" in chrome) {
|
||||
set(saveName, JSON.stringify(data));
|
||||
if ("getManifest" in chrome.runtime) {
|
||||
var data = {
|
||||
version: version.get(),
|
||||
state: state.get(),
|
||||
bookmarks: bookmarks.get()
|
||||
};
|
||||
set(saveName, JSON.stringify(data));
|
||||
};
|
||||
};
|
||||
// console.log("data saved");
|
||||
};
|
||||
|
||||
var wipe = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user