mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
f4f29c84c0
commit
fa93b0d605
@ -23,7 +23,7 @@ from calibre.constants import (
|
|||||||
)
|
)
|
||||||
from calibre.ebooks.metadata.book.base import field_metadata
|
from calibre.ebooks.metadata.book.base import field_metadata
|
||||||
from calibre.ebooks.oeb.polish.utils import guess_type
|
from calibre.ebooks.oeb.polish.utils import guess_type
|
||||||
from calibre.gui2 import error_dialog, open_url
|
from calibre.gui2 import error_dialog, safe_open_url
|
||||||
from calibre.gui2.webengine import (
|
from calibre.gui2.webengine import (
|
||||||
Bridge, RestartingWebEngineView, create_script, from_js, insert_scripts,
|
Bridge, RestartingWebEngineView, create_script, from_js, insert_scripts,
|
||||||
secure_webengine, to_js
|
secure_webengine, to_js
|
||||||
@ -279,7 +279,7 @@ class WebPage(QWebEnginePage):
|
|||||||
return True
|
return True
|
||||||
if url.scheme() in (FAKE_PROTOCOL, 'data'):
|
if url.scheme() in (FAKE_PROTOCOL, 'data'):
|
||||||
return True
|
return True
|
||||||
open_url(url)
|
safe_open_url(url)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def go_to_anchor(self, anchor):
|
def go_to_anchor(self, anchor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user