[bug] improve demo page check when saving data

This commit is contained in:
zombieFox 2019-06-17 00:21:56 +01:00
parent 6d2380714f
commit 26ef4d7209

View File

@ -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() {