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:
Damien Elmes 2017-07-17 12:40:38 +10:00
parent 4eb3902759
commit d99dcaafdc

View File

@ -56,6 +56,8 @@ class AnkiWebPage(QWebEnginePage):
dict(a=line, b=msg+"\n")))
def acceptNavigationRequest(self, url, navType, isMainFrame):
if not isMainFrame:
return True
# load all other links in browser
openLink(url)
return False