storage: Don't throw if we store undefined

This commit is contained in:
Scott Nonnenberg 2020-10-07 17:46:52 -07:00 committed by Josh Perez
parent c7308b485b
commit 358ee4ab72
2 changed files with 5 additions and 5 deletions

View file

@ -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);