diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 051c00941..b12915d4e 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -255,11 +255,11 @@ class HintManager(QObject): The newly created label elment """ rect = elem.geometry() - css = HintManager.HINT_CSS.format(left=rect.x(), top=rect.y(), - config=config.instance) + css = self.HINT_CSS.format(left=rect.x(), top=rect.y(), + config=config.instance) doc = self._frame.documentElement() doc.appendInside('{}'.format( - css, string)) + css, string)) return doc.lastChild() def _click(self, elem, target):