Fix lint warnings
This commit is contained in:
parent
7d181ee4b5
commit
3b836d3483
@ -1293,9 +1293,11 @@ class CommandDispatcher:
|
|||||||
env['QUTE_URL'] = url.toString(QUrl.FullyEncoded)
|
env['QUTE_URL'] = url.toString(QUrl.FullyEncoded)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
args = self.userscript_object['args']
|
||||||
|
verbose = self.userscript_object['verbose']
|
||||||
userscripts.run_async(tab, self.userscript_object['cmd'],
|
userscripts.run_async(tab, self.userscript_object['cmd'],
|
||||||
*self.userscript_object['args'], win_id=self._win_id,
|
*args, win_id=self._win_id,
|
||||||
env=env, verbose=self.userscript_object['verbose'])
|
env=env, verbose=verbose)
|
||||||
except userscripts.Error as e:
|
except userscripts.Error as e:
|
||||||
raise cmdexc.CommandError(e)
|
raise cmdexc.CommandError(e)
|
||||||
finally:
|
finally:
|
||||||
|
@ -965,7 +965,7 @@ window._qutebrowser.caret = (function() { // eslint-disable-line max-statements,
|
|||||||
window.caretBrowsingLoaded = true;
|
window.caretBrowsingLoaded = true;
|
||||||
CaretBrowsing.init();
|
CaretBrowsing.init();
|
||||||
|
|
||||||
if (document.body &&
|
if (document.body &&
|
||||||
document.body.getAttribute("caretbrowsing") === "on") {
|
document.body.getAttribute("caretbrowsing") === "on") {
|
||||||
CaretBrowsing.forceEnabled = true;
|
CaretBrowsing.forceEnabled = true;
|
||||||
CaretBrowsing.isEnabled = true;
|
CaretBrowsing.isEnabled = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user