Make url mandatory for _update_stylesheet
This commit is contained in:
parent
1cf8011eb1
commit
18f4d1d546
@ -804,7 +804,7 @@ class _WebEngineScripts(QObject):
|
|||||||
self._update_stylesheet(url)
|
self._update_stylesheet(url)
|
||||||
|
|
||||||
@pyqtSlot(QUrl)
|
@pyqtSlot(QUrl)
|
||||||
def _update_stylesheet(self, url=None):
|
def _update_stylesheet(self, url):
|
||||||
"""Update the custom stylesheet in existing tabs."""
|
"""Update the custom stylesheet in existing tabs."""
|
||||||
css = shared.get_user_stylesheet(url=url)
|
css = shared.get_user_stylesheet(url=url)
|
||||||
code = javascript.assemble('stylesheet', 'set_css', css)
|
code = javascript.assemble('stylesheet', 'set_css', css)
|
||||||
|
Loading…
Reference in New Issue
Block a user