Warn if writing to storage too early

// FREEBIE
pull/749/head
lilia 9 years ago
parent f05b40e89a
commit a98de39173

@ -25,6 +25,9 @@
if (value === undefined) {
throw new Error("Tried to store undefined");
}
if (!ready) {
console.log('Called storage.put before storage is ready');
}
var item = items.add({id: key, value: value}, {merge: true});
item.save();
},

Loading…
Cancel
Save