mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 1312041 - make loader-plugin-raw.jsm eslint-clean; r=jryans
MozReview-Commit-ID: 4Lkua3ZMslL --HG-- extra : rebase_source : 0af01c48c93e8006fcbe28ed198076e5ecd74c21
This commit is contained in:
parent
713178fa1e
commit
74d7569a65
@ -134,8 +134,6 @@ devtools/shared/*.js
|
||||
!devtools/shared/indentation.js
|
||||
!devtools/shared/loader-plugin-raw.jsm
|
||||
!devtools/shared/task.js
|
||||
devtools/shared/*.jsm
|
||||
!devtools/shared/Loader.jsm
|
||||
devtools/shared/apps/**
|
||||
devtools/shared/client/**
|
||||
devtools/shared/discovery/**
|
||||
|
@ -13,7 +13,7 @@ const { NetUtil } = Cu.import("resource://gre/modules/NetUtil.jsm", {});
|
||||
* requires; other requires should not be passed to this. See
|
||||
* https://github.com/webpack/raw-loader.
|
||||
*/
|
||||
function requireRawId(id, require) {
|
||||
this.requireRawId = function (id, require) {
|
||||
// Add the chrome:// protocol for properties files if missing (see Bug 1294220)
|
||||
if (id.endsWith(".properties") && !id.startsWith("raw!chrome://")) {
|
||||
id = id.replace("raw!", "raw!chrome://");
|
||||
@ -28,7 +28,6 @@ function requireRawId(id, require) {
|
||||
uri = uri.slice(0, -3);
|
||||
}
|
||||
|
||||
|
||||
let stream = NetUtil.newChannel({
|
||||
uri: NetUtil.newURI(uri, "UTF-8"),
|
||||
loadUsingSystemPrincipal: true
|
||||
@ -43,6 +42,6 @@ function requireRawId(id, require) {
|
||||
// For the time being it doesn't seem worthwhile to cache the
|
||||
// result here.
|
||||
return data;
|
||||
}
|
||||
};
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["requireRawId"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user