[Pkg-mozext-commits] [tabmixplus] 25/123: Add TabmixSvc.debugMode function
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:16:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 16c3c414e41621dc59fd966af63eafec70ae7b8a
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Aug 20 20:16:58 2014 +0300
Add TabmixSvc.debugMode function
---
chrome/content/tab/tabbrowser_4.xml | 5 +----
modules/Services.jsm | 5 +++++
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/chrome/content/tab/tabbrowser_4.xml b/chrome/content/tab/tabbrowser_4.xml
index 699d281..4cc21c2 100644
--- a/chrome/content/tab/tabbrowser_4.xml
+++ b/chrome/content/tab/tabbrowser_4.xml
@@ -435,10 +435,7 @@
if (attr.length)
this.setAttribute("tabmix_icons", attr.join(" "));
- if (Tabmix.prefs.prefHasUserValue("enableDebug") &&
- Tabmix.prefs.getBoolPref("enableDebug")) {
- Tabmix._debugMode = true;
- }
+ Tabmix._debugMode = TabmixSvc.debugMode();
if ("linkedBrowser" in tab)
tablib.setLoadURIWithFlags(tab.linkedBrowser);
diff --git a/modules/Services.jsm b/modules/Services.jsm
index 7060432..1b90fdc 100644
--- a/modules/Services.jsm
+++ b/modules/Services.jsm
@@ -17,6 +17,11 @@ function isVersion(aVersionNo) {
}
let TabmixSvc = {
+ debugMode: function() {
+ return this.prefBranch.prefHasUserValue("enableDebug") &&
+ this.prefBranch.getBoolPref("enableDebug");
+ },
+
version: function(aVersionNo) {
return isVersion(aVersionNo);
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list