From c1eb0438abc99d0502999c850e8d318a94fb54ee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Jul 2017 08:52:24 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/db.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/db.pyj b/src/pyj/read_book/db.pyj index a5d8200de0..631f2274b8 100644 --- a/src/pyj/read_book/db.pyj +++ b/src/pyj/read_book/db.pyj @@ -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):