mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove warning to user about missing ApplicationCache
This commit is contained in:
parent
65236a3ab6
commit
d3cdff0d68
@ -6,7 +6,6 @@ from elementmaker import E
|
|||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
from ajax import ajax_send
|
from ajax import ajax_send
|
||||||
from book_list.constants import has_offline_support
|
|
||||||
from book_list.cover_grid import BORDER_RADIUS
|
from book_list.cover_grid import BORDER_RADIUS
|
||||||
from book_list.globals import get_db
|
from book_list.globals import get_db
|
||||||
from book_list.library_data import last_virtual_library_for, sync_library_books, all_libraries
|
from book_list.library_data import last_virtual_library_for, sync_library_books, all_libraries
|
||||||
@ -256,12 +255,4 @@ def init(container_id):
|
|||||||
cl.lastChild.style.margin = '1ex 1rem'
|
cl.lastChild.style.margin = '1ex 1rem'
|
||||||
cl.lastChild.dataset.lid = library_id
|
cl.lastChild.dataset.lid = library_id
|
||||||
|
|
||||||
if not has_offline_support():
|
|
||||||
container.appendChild(E.div(
|
|
||||||
style='margin-top: 1rem; padding: 1rem; border-top: solid 1px currentColor',
|
|
||||||
_('WARNING: This browser does not support Application Cache so offline access'
|
|
||||||
' to calibre will not work. Some browsers only enable Application Cache over HTTPS'
|
|
||||||
' connections, so you may have to setup HTTPS for your calibre server.')))
|
|
||||||
|
|
||||||
|
|
||||||
set_default_panel_handler(init)
|
set_default_panel_handler(init)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user