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 469542aa31
commit f047322200

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