mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 984237 - Specify mime type in require.js. r=gozala
This commit is contained in:
parent
469542aa31
commit
f047322200
@ -195,7 +195,12 @@
|
||||
"function(exports, require, module) {" +
|
||||
source +
|
||||
"\n}\n";
|
||||
let blob = new Blob([(new TextEncoder()).encode(source)]);
|
||||
let blob = new Blob(
|
||||
[
|
||||
(new TextEncoder()).encode(source)
|
||||
], {
|
||||
type: "application/javascript"
|
||||
});
|
||||
objectURL = URL.createObjectURL(blob);
|
||||
paths.set(objectURL, path);
|
||||
importScripts(objectURL);
|
||||
|
Loading…
Reference in New Issue
Block a user