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
@ -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 New Issue
Block a user