This commit is contained in:
Florian Bruhin 2016-07-13 16:00:43 +02:00
parent 5b1cca92ab
commit a7509d5978
2 changed files with 1 additions and 1 deletions

View File

@ -348,6 +348,7 @@ class WebEngineTab(browsertab.AbstractTab):
js_ret = None
def js_cb(val):
"""Handle return value from JS and stop blocking."""
nonlocal js_ret
js_ret = val
loop.quit()

View File

@ -20,7 +20,6 @@
import pytest
from PyQt5.QtCore import PYQT_VERSION, pyqtSignal, QPoint
from PyQt5.QtGui import QColor
from qutebrowser.browser import browsertab
from qutebrowser.keyinput import modeman