Also log db init failure event to console

This commit is contained in:
Kovid Goyal 2017-05-25 07:26:14 +05:30
parent 1c9fb795ef
commit 2240b19882
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -71,11 +71,13 @@ class DB:
request.onblocked = def(event): request.onblocked = def(event):
self.initialize_error_msg = _('Please close all other browser tabs with calibre open') self.initialize_error_msg = _('Please close all other browser tabs with calibre open')
self.initialized = True self.initialized = True
console.log(event)
self.callback() self.callback()
request.onerror = def(event): request.onerror = def(event):
self.initialize_error_msg = _('You must allow calibre to use IndexedDB storage in your browser to read books') self.initialize_error_msg = _('You must allow calibre to use IndexedDB storage in your browser to read books')
self.initialized = True self.initialized = True
console.log(event)
self.callback() self.callback()
request.onsuccess = def(event): request.onsuccess = def(event):