Skip to content

Commit

Permalink
Merge branch 'jb53593' into 'master'
Browse files Browse the repository at this point in the history
[embedlite-components] Make about redirector to work. Fixes JB#53593

See merge request mer-core/embedlite-components!113
  • Loading branch information
rainemak committed Mar 18, 2021
2 parents 5d73469 + d845291 commit 88a7bf7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jscomps/AboutRedirector.js
Expand Up @@ -3,8 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;

Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");

Services.scriptloader.loadSubScript("chrome://embedlite/content/Logger.js");

Expand Down Expand Up @@ -43,7 +45,7 @@ AboutRedirector.prototype = {
classID: Components.ID("{59f3da9a-6c88-11e2-b875-33d1bd379849}"),

_getModuleInfo: function (aURI) {
let moduleName = aURI.path.replace(/[?#].*/, "").toLowerCase();
let moduleName = aURI.pathQueryRef.replace(/[?#].*/, "").toLowerCase();
return modules[moduleName];
},

Expand Down

0 comments on commit 88a7bf7

Please sign in to comment.