[Pkg-mozext-commits] [perspectives-extension] 30/44: Perspectives - add functions for retrieving charPrefs
David Prévot
taffit at moszumanska.debian.org
Sun Jun 26 04:59:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository perspectives-extension.
commit 1d6cc8c81d7db6a2a0837a04ad24bb5895c77401
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Tue Jun 14 20:54:47 2016 -0700
Perspectives - add functions for retrieving charPrefs
---
plugin/chrome/content/notaries.js | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/plugin/chrome/content/notaries.js b/plugin/chrome/content/notaries.js
index c20bfbc..8163879 100644
--- a/plugin/chrome/content/notaries.js
+++ b/plugin/chrome/content/notaries.js
@@ -129,6 +129,17 @@ var Perspectives = {
return;
},
+ // return the value of a string preference
+ getCharPref: function(prefName) {
+ return Perspectives.getRootPrefs().getCharPref(prefName);
+ },
+
+ // set the value of a string preference
+ setCharPref: function(prefName, newVal) {
+ Perspectives.getRootPrefs().setCharPref(prefName, newVal);
+ return;
+ },
+
getOverrideService: function() {
if(Perspectives.overrideService === null) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list