Skip to content

Commit

Permalink
Fix scriptlets not being reported in logger (Firefox)
Browse files Browse the repository at this point in the history
Regression from:
- gorhill@efe2e0c

Related issue:
- uBlockOrigin/uBlock-issues#2072
  • Loading branch information
gorhill committed Mar 31, 2022
1 parent 879e721 commit dd5a93d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ const retrieveContentScriptParameters = async function(sender, request) {
µb.canInjectScriptletsNow === false ||
isNetworkURI(sender.frameURL) === false
) {
response.scriptlets = scriptletFilteringEngine.retrieve(request);
scriptletFilteringEngine.injectNow(request);
}

// https://github.com/NanoMeow/QuickReports/issues/6#issuecomment-414516623
Expand Down
2 changes: 1 addition & 1 deletion src/js/scriptlet-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const contentscriptCode = (( ) => {
'"', 'hostname-slot', '", ',
'"', 'scriptlets-slot', '"',
');',
'0;',
'\n0;',
];
return {
parts: parts,
Expand Down

0 comments on commit dd5a93d

Please sign in to comment.