Bug 984237 - Specify mime type in require.js. r=gozala

This commit is contained in:
David Rajchenbach-Teller 2014-03-21 09:18:39 -04:00
parent 80a71f8d6e
commit 5bd0ff3c56

View File

@ -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);