storage: Don't throw if we store undefined
This commit is contained in:
parent
c7308b485b
commit
358ee4ab72
2 changed files with 5 additions and 5 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
async function put(key, value) {
|
||||
if (value === undefined) {
|
||||
throw new Error('Tried to store undefined');
|
||||
window.log.warn(`storage/put: undefined provided for key ${key}`);
|
||||
}
|
||||
if (!ready) {
|
||||
window.log.warn('Called storage.put before storage is ready. key:', key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue