Merge pull request #3803 from toofar/fix/greasemonkey_includes_fallback

Greasemonkey: fix default include value
This commit is contained in:
Jay Kamat 2018-04-13 18:26:46 -04:00 committed by GitHub
commit 0829511221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ class GreasemonkeyScript:
props = ""
script = cls(re.findall(cls.PROPS_REGEX, props), source)
script.script_meta = props
if not props:
if not script.includes:
script.includes = ['*']
return script