mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
c5cb5654c9
commit
c1eb0438ab
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user