summaryrefslogtreecommitdiffstats
path: root/application/palemoon/modules
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 05:39:27 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-26 05:39:27 +0200
commitb0d7b1bb38ba3c6940d17c6974b5295d9a10e161 (patch)
tree9ab7f6e19215bf87dac611f51299953e7c710dd5 /application/palemoon/modules
parent6c3f95480a191ce432ddfb2aa400a6d70c4884a8 (diff)
downloadUXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar
UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar.gz
UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar.lz
UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar.xz
UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.zip
Bug 996448 - Lazify the loading of PluralForm.jsm everywhere
Diffstat (limited to 'application/palemoon/modules')
-rw-r--r--application/palemoon/modules/webrtcUI.jsm4
1 files changed, 3 insertions, 1 deletions
diff --git a/application/palemoon/modules/webrtcUI.jsm b/application/palemoon/modules/webrtcUI.jsm
index c957bfd9a..9427fc630 100644
--- a/application/palemoon/modules/webrtcUI.jsm
+++ b/application/palemoon/modules/webrtcUI.jsm
@@ -11,9 +11,11 @@ const Cc = Components.classes;
const Ci = Components.interfaces;
Cu.import("resource://gre/modules/Services.jsm");
-Cu.import("resource://gre/modules/PluralForm.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
+ "resource://gre/modules/PluralForm.jsm");
+
XPCOMUtils.defineLazyServiceGetter(this, "MediaManagerService",
"@mozilla.org/mediaManagerService;1",
"nsIMediaManagerService");