mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 16:47:15 +02:00
Set charset
to utf-8
for Blob-based injected scriptlets
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2431
This commit is contained in:
parent
d10d0ff14f
commit
f8d2bd0ebb
@ -467,7 +467,7 @@ vAPI.injectScriptlet = function(doc, text) {
|
||||
if ( !doc ) { return; }
|
||||
let script, url;
|
||||
try {
|
||||
const blob = new self.Blob([ text ], { type: 'text/javascript' });
|
||||
const blob = new self.Blob([ text ], { type: 'text/javascript; charset=utf-8' });
|
||||
url = self.URL.createObjectURL(blob);
|
||||
script = doc.createElement('script');
|
||||
script.async = false;
|
||||
|
Loading…
Reference in New Issue
Block a user