Skip to content

Commit

Permalink
Set charset to utf-8 for Blob-based injected scriptlets
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jan 1, 2023
1 parent 72dabca commit d10d0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/firefox/vapi-background-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ vAPI.Net = class extends vAPI.Net {
vAPI.scriptletsInjector = ((doc, scriptlets) => {
let script, url;
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);
script = doc.createElement('script');
script.async = false;
Expand Down

0 comments on commit d10d0ff

Please sign in to comment.