Skip to content

Commit

Permalink
webeneginepreview: Allow to load iframes such as YouTube embeds
Browse files Browse the repository at this point in the history
Fixes #604.
  • Loading branch information
mitya57 committed Dec 18, 2022
1 parent ecc567a commit 0987c28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ReText/webenginepreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def javaScriptConsoleMessage(self, level, message, lineNumber, sourceId):
print("level=%r message=%r lineNumber=%r sourceId=%r" % (level, message, lineNumber, sourceId))

def acceptNavigationRequest(self, url, type, isMainFrame):
if not isMainFrame:
return True
if url.scheme() == "data":
return True
if url.isLocalFile():
Expand Down

0 comments on commit 0987c28

Please sign in to comment.