Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/loader/pluginLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
console.error("Plugin '" + pluginDeclaration.id + "' overridden by", pluginPath);
delete plugins[pluginDeclaration.id]
} else {
console.error("Duplicate plugin id (filename)", pluginPath);
console.error("Duplicate plugin id ignored (filename)", pluginPath);
return;
}
}
Expand Down
15 changes: 15 additions & 0 deletions lib/plugins/system/htmlparser/__allowHtmlparser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

export default {

provides: [
// Run for all who requests htmlparser or meta.
'htmlparser',
'__allowHtmlparser'
],

getData: function() {
return {
__allowHtmlparser: true
};
}
};
2 changes: 1 addition & 1 deletion lib/plugins/system/htmlparser/htmlparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
'__statusCode'
],

getData: function(url, whitelistRecord, options, __noCachedHtmlparserFallback, cb) {
getData: function(url, whitelistRecord, options, __noCachedHtmlparserFallback, __allowHtmlparser, cb) {

var options2 = {...options, ...{
followRedirect: !!options.followHTTPRedirect,
Expand Down
Loading