Skip to content

Commit

Permalink
Make GM_info.matches a list of (pattern) strings.
Browse files Browse the repository at this point in the history
Fixes #1516
  • Loading branch information
Anthony Lieuallen committed Feb 16, 2012
1 parent c4c4cb8 commit 0561313
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/greasemonkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ function getFirebugConsole(wrappedContentWin, chromeWin) {
}

function info(aScript) {
var matches = [];
for (var i = 0, m = null; m = aScript.matches[i]; i++) {
matches[matches.length] = m.pattern;
}
return {
'version': gGreasemonkeyVersion,
'scriptWillUpdate': aScript.isRemoteUpdateAllowed(),
Expand All @@ -168,7 +172,7 @@ function info(aScript) {
'excludes': aScript.excludes,
// 'icon': ???,
'includes': aScript.includes,
'matches': aScript.matches,
'matches': matches,
'name': aScript.name,
'namespace': aScript.namespace,
// 'requires': ???,
Expand Down

0 comments on commit 0561313

Please sign in to comment.