Greasemonkey: don't complain about an unset run-at
Apparently is is not an unusual situation to leave it unset and rely on the default. Logging a warning about this could be unnecerasily confusing for users. I'm leaving the log message in there if it is set to something weird like `window-load` or `document-complete` which scriptish may support.
This commit is contained in:
parent
d5d22783ea
commit
aebc1a7d48
@ -177,10 +177,10 @@ class GreasemonkeyManager(QObject):
|
||||
elif script.run_at == 'document-idle':
|
||||
self._run_idle.append(script)
|
||||
else:
|
||||
log.greasemonkey.warning("Script {} has invalid run-at "
|
||||
"defined, defaulting to "
|
||||
"document-end"
|
||||
.format(script_path))
|
||||
if script.run_at:
|
||||
log.greasemonkey.warning(
|
||||
"Script {} has invalid run-at defined, "
|
||||
"defaulting to document-end".format(script_path))
|
||||
# Default as per
|
||||
# https://wiki.greasespot.net/Metadata_Block#.40run-at
|
||||
self._run_end.append(script)
|
||||
|
Loading…
Reference in New Issue
Block a user