From 1956480164077d64917421cba89834e8fcf9065a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 18 Aug 2016 15:56:48 +0200 Subject: [PATCH] Revert "Handle {} elements in elements._js_cb_single" This reverts commit f59a9d37252599c8fbda4cc687bd9f094c6d05b9. Since we're now using a webelem function, this isn't needed anymore. --- qutebrowser/browser/webengine/webenginetab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index be707e722..7f4d29b5d 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -339,7 +339,7 @@ class WebEngineElements(browsertab.AbstractElements): js_elem: The element serialized from javascript. """ log.webview.debug("Got element from JS: {!r}".format(js_elem)) - if not js_elem: + if js_elem is None: callback(None) else: elem = webengineelem.WebEngineElement(js_elem, tab=self)