Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[embedlite-components] Lazy load Logger for OrientationChangeHandler.…
… Fixes JB#53335
  • Loading branch information
rainemak committed Feb 26, 2021
1 parent e90d8f0 commit 690db9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jsscripts/Logger.js
Expand Up @@ -7,6 +7,8 @@

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

var EXPORTED_SYMBOLS = [ "Logger" ];

let Logger = {
_enabled: false,
_consoleEnv: null,
Expand Down
2 changes: 2 additions & 0 deletions jsscripts/OrientationChangeHandler.jsm
Expand Up @@ -15,6 +15,8 @@ Cu.import("resource://gre/modules/Services.jsm");
XPCOMUtils.defineLazyServiceGetter(Services, "embedlite",
"@mozilla.org/embedlite-app-service;1",
"nsIEmbedAppService");
XPCOMUtils.defineLazyModuleGetter(this, "Logger",
"chrome://embedlite/content/Logger.js");

this.OrientationChangeHandler = function OrientationChangeHandler(window) {
this.docShell = window.QueryInterface(Ci.nsIInterfaceRequestor)
Expand Down

0 comments on commit 690db9a

Please sign in to comment.