mirror of https://github.com/gorhill/uBlock.git
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
72dabcac66
commit
d10d0ff14f
|
@ -307,7 +307,7 @@ vAPI.Net = class extends vAPI.Net {
|
||||||
vAPI.scriptletsInjector = ((doc, scriptlets) => {
|
vAPI.scriptletsInjector = ((doc, scriptlets) => {
|
||||||
let script, url;
|
let script, url;
|
||||||
try {
|
try {
|
||||||
const blob = new self.Blob([ scriptlets ], { type: 'text/javascript' });
|
const blob = new self.Blob([ scriptlets ], { type: 'text/javascript; charset=utf-8' });
|
||||||
url = self.URL.createObjectURL(blob);
|
url = self.URL.createObjectURL(blob);
|
||||||
script = doc.createElement('script');
|
script = doc.createElement('script');
|
||||||
script.async = false;
|
script.async = false;
|
||||||
|
|
Loading…
Reference in New Issue