Make url mandatory for _update_stylesheet

This commit is contained in:
Florian Bruhin 2018-06-14 12:05:34 +02:00
parent 1cf8011eb1
commit 18f4d1d546

View File

@ -804,7 +804,7 @@ class _WebEngineScripts(QObject):
self._update_stylesheet(url)
@pyqtSlot(QUrl)
def _update_stylesheet(self, url=None):
def _update_stylesheet(self, url):
"""Update the custom stylesheet in existing tabs."""
css = shared.get_user_stylesheet(url=url)
code = javascript.assemble('stylesheet', 'set_css', css)