Index: lib/snippets.js |
=================================================================== |
--- a/lib/snippets.js |
+++ b/lib/snippets.js |
@@ -56,28 +56,28 @@ |
* @param {SnippetFilter} filter |
*/ |
remove(filter) |
{ |
filters.delete(filter.text); |
}, |
/** |
- * Returns a list of all scripts active on a particular domain |
+ * Returns a list of all snippet filters active on a particular domain |
* @param {string} domain |
- * @return {string[]} |
+ * @return {Filter[]} |
*/ |
- getScriptsForDomain(domain) |
+ getSnippetsForDomain(domain) |
{ |
let result = []; |
for (let text of filters) |
{ |
let filter = Filter.fromText(text); |
if (filter.isActiveOnDomain(domain)) |
- result.push(filter.script); |
+ result.push(filter); |
} |
return result; |
} |
}; |
exports.Snippets = Snippets; |
/** |