[Pkg-mozext-commits] [perspectives-extension] 20/44: Pers_init - format pref strings

David Prévot taffit at moszumanska.debian.org
Sun Jun 26 04:59:19 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 e46f3896b35ab31cec96421fafc476fdd4b7d7b4
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Sun Jun 12 21:41:57 2016 -0700

    Pers_init - format pref strings
    
    This is easier to read
---
 plugin/chrome/content/init.js | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/plugin/chrome/content/init.js b/plugin/chrome/content/init.js
index 9be5fc2..100fa33 100644
--- a/plugin/chrome/content/init.js
+++ b/plugin/chrome/content/init.js
@@ -51,9 +51,30 @@ var Pers_init = {
     // required by addons.mozilla.org
     // https://developer.mozilla.org/en-US/Add-ons/AMO/Policy/Reviews#Full_Review
     migrateOldSettings: function() {
-      var preflist_numeric = ["perspectives.quorum_thresh","perspectives.required_duration","perspectives.security_settings","perspectives.max_timespan_for_inconsistency_test","perspectives.weak_consistency_time_limit","perspectives.max_cache_age_sec"];
-      var preflist_string = ["perspectives.svg","perspectives.whitelist","perspectives.additional_notary_list","perspectives.default_notary_list"];
-      var preflist_bool = ["perspectives.exceptions.permanent","perspectives.exceptions.enabled","perspectives.check_good_certificates","perspectives.require_user_permission","perspectives.trust_https_with_weak_consistency","perspectives.prompt_update_all_https_setting","perspectives.enable_default_list_auto_update","perspectives.use_default_notary_list"];
+      var preflist_numeric = [
+        'perspectives.quorum_thresh',
+        'perspectives.required_duration',
+        'perspectives.security_settings',
+        'perspectives.max_timespan_for_inconsistency_test',
+        'perspectives.weak_consistency_time_limit',
+        'perspectives.max_cache_age_sec'
+      ];
+      var preflist_string = [
+        'perspectives.svg',
+        'perspectives.whitelist',
+        'perspectives.additional_notary_list',
+        'perspectives.default_notary_list'
+      ];
+      var preflist_bool = [
+        'perspectives.exceptions.permanent',
+        'perspectives.exceptions.enabled',
+        'perspectives.check_good_certificates',
+        'perspectives.require_user_permission',
+        'perspectives.trust_https_with_weak_consistency',
+        'perspectives.prompt_update_all_https_setting',
+        'perspectives.enable_default_list_auto_update',
+        'perspectives.use_default_notary_list'
+      ];
       var root_prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
       var migration_needed  = root_prefs.getBoolPref("extensions.perspectives.preference_migration");
 

-- 
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