Skip to content

Commit

Permalink
Merge pull request #2230 from nikicc/webengine-loading-error
Browse files Browse the repository at this point in the history
[FIX] WebEngineView: Insert JS if loading already started
  • Loading branch information
astaric authored Apr 21, 2017
2 parents 7ae2cfb + 16fc00a commit e63c72b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Orange/widgets/utils/webview.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def _onloadJS(self, code, name='', injection_point=QWebEngineScript.DocumentRead
script.setInjectionPoint(injection_point)
script.setWorldId(script.MainWorld)
script.setRunsOnSubFrames(False)
self.page().scripts().insert(script)
self.loadStarted.connect(
lambda: self.page().scripts().insert(script))

Expand Down

0 comments on commit e63c72b

Please sign in to comment.