mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
don't open separate browser window on iframe load
https://anki.tenderapp.com/discussions/beta-testing/627-anki-210-beta-1#comment_43008395
This commit is contained in:
parent
4eb3902759
commit
d99dcaafdc
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ class AnkiWebPage(QWebEnginePage):
|
||||||
dict(a=line, b=msg+"\n")))
|
dict(a=line, b=msg+"\n")))
|
||||||
|
|
||||||
def acceptNavigationRequest(self, url, navType, isMainFrame):
|
def acceptNavigationRequest(self, url, navType, isMainFrame):
|
||||||
|
if not isMainFrame:
|
||||||
|
return True
|
||||||
# load all other links in browser
|
# load all other links in browser
|
||||||
openLink(url)
|
openLink(url)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue