summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/browser.js
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-27 13:03:12 +0200
committerGitHub <noreply@github.com>2018-04-27 13:03:12 +0200
commitc82c6d960a7f19d6595171f9705c43514f20c1ec (patch)
treea6b92a1da483b654e3ac498fe1197dcad9c65866 /application/palemoon/base/content/browser.js
parent8acbae697958b7abfbb9ea5806646ebb2cea5f87 (diff)
parente66060388f0f8402bed402cb28edbe43fcc31ad5 (diff)
downloadUXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar.gz
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar.lz
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.tar.xz
UXP-c82c6d960a7f19d6595171f9705c43514f20c1ec.zip
Merge pull request #273 from janekptacijarabaci/pm_permissions_1
[PALEMOON] [frontend vs backend] Fix "Permissions Manager" and permissions
Diffstat (limited to 'application/palemoon/base/content/browser.js')
-rw-r--r--application/palemoon/base/content/browser.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js
index c9f0aa4aa..556e7a2b7 100644
--- a/application/palemoon/base/content/browser.js
+++ b/application/palemoon/base/content/browser.js
@@ -83,14 +83,8 @@ this.__defineSetter__("AddonManager", function (val) {
return this.AddonManager = val;
});
-this.__defineGetter__("PluralForm", function() {
- Cu.import("resource://gre/modules/PluralForm.jsm");
- return this.PluralForm;
-});
-this.__defineSetter__("PluralForm", function (val) {
- delete this.PluralForm;
- return this.PluralForm = val;
-});
+XPCOMUtils.defineLazyModuleGetter(this, "PluralForm",
+ "resource://gre/modules/PluralForm.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "AboutHomeUtils",
"resource:///modules/AboutHomeUtils.jsm");