summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/browser-menudragging.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-25 17:47:59 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-25 17:47:59 +0100
commit917a2c450f08ab4c934c9938319f10a1114272b4 (patch)
tree79394bdbef8c5bc90734918a9f862efaf6ec2e1a /application/palemoon/base/content/browser-menudragging.js
parenteb77e289bbe056b58051db0fa868e95da803aa0a (diff)
parenta1ad1d835b66e9300cc011244a23aea5d660baf1 (diff)
downloadUXP-917a2c450f08ab4c934c9938319f10a1114272b4.tar
UXP-917a2c450f08ab4c934c9938319f10a1114272b4.tar.gz
UXP-917a2c450f08ab4c934c9938319f10a1114272b4.tar.lz
UXP-917a2c450f08ab4c934c9938319f10a1114272b4.tar.xz
UXP-917a2c450f08ab4c934c9938319f10a1114272b4.zip
Merge branch 'master' of https://github.com/MoonchildProductions/UXP
Diffstat (limited to 'application/palemoon/base/content/browser-menudragging.js')
-rw-r--r--application/palemoon/base/content/browser-menudragging.js26
1 files changed, 2 insertions, 24 deletions
diff --git a/application/palemoon/base/content/browser-menudragging.js b/application/palemoon/base/content/browser-menudragging.js
index cf26b2ba4..f3f00d72c 100644
--- a/application/palemoon/base/content/browser-menudragging.js
+++ b/application/palemoon/base/content/browser-menudragging.js
@@ -52,11 +52,9 @@ var browserMenuDragging = {
initPref: function(){
this.STAY_OPEN_ONDRAGEXIT =
- this.getPref('browser.menu.dragging.stayOpen',
- 'bool', false);
+ Services.prefs.getBoolPref('browser.menu.dragging.stayOpen', false);
this.DEBUG =
- this.getPref('browser.menu.dragging.debug',
- 'bool', false);
+ Services.prefs.getBoolPref('browser.menu.dragging.debug', false);
},
//delayed startup
@@ -291,26 +289,6 @@ var browserMenuDragging = {
.logStringMessage(aMsg);
},
- getPref: function(aPrefString, aPrefType, aDefault){
- var xpPref = Components.classes["@mozilla.org/preferences-service;1"]
- .getService(Components.interfaces.nsIPrefService);
- try{
- switch (aPrefType){
- case 'complex':
- return xpPref.getComplexValue(aPrefString, Components.interfaces.nsILocalFile); break;
- case 'str':
- return xpPref.getCharPref(aPrefString).toString(); break;
- case 'int':
- return xpPref.getIntPref(aPrefString); break;
- case 'bool':
- default:
- return xpPref.getBoolPref(aPrefString); break;
- }
- }catch(e){
- }
- return aDefault;
- },
-
setPref: function(aPrefString, aPrefType, aValue){
var xpPref = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);