Server: Fix an error on browsers that do not support blob storage in IndexedDB. Fixes #1704912 [TypeError:undefined is not an object](https://bugs.launchpad.net/calibre/+bug/1704912)

This commit is contained in:
Kovid Goyal 2017-07-18 08:52:24 +05:30
parent c5cb5654c9
commit c1eb0438ab
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -98,6 +98,7 @@ class DB:
req = store.put(blob, ':-test-blob-:')
except:
self.initialize_stage2(idb, False)
return
req.onsuccess = def(event):
self.initialize_stage2(idb, True)
req.onerror = def(event):