mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix show_read_book_error not being set
This commit is contained in:
parent
1ceb6af05f
commit
c9741c75e2
@ -128,7 +128,7 @@ class DB:
|
||||
# https://gist.github.com/nolanlawson/a841ee23436410f37168
|
||||
try:
|
||||
req = transaction.objectStore(store).get(data)
|
||||
except Exception:
|
||||
except:
|
||||
if /Edge\/\d+/.test(window.navigator.userAgent):
|
||||
self.show_error(_('Cannot read book'), _(
|
||||
'Reading of books is not supported on Microsoft Edge. Use a better'
|
||||
@ -342,5 +342,5 @@ class DB:
|
||||
|
||||
def get_db(callback, show_read_book_error):
|
||||
if not get_db.ans:
|
||||
get_db.ans = DB(callback)
|
||||
get_db.ans = DB(callback, show_read_book_error)
|
||||
return get_db.ans
|
||||
|
Loading…
x
Reference in New Issue
Block a user