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