summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/feeds/FeedWriter.js
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-08 18:12:40 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-04-13 11:37:45 -0400
commit9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5 (patch)
treef2f676dbca9e8beb16895e97d733bc9de70ecd07 /application/palemoon/components/feeds/FeedWriter.js
parent7d1126fad325e889559b1f9113cbbb17d49842fa (diff)
downloadUXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.gz
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.lz
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.tar.xz
UXP-9a37ab727e68f44e26e04b18f2cab40a0ac4fdb5.zip
Issue #991 Part 1: Pale Moon
Diffstat (limited to 'application/palemoon/components/feeds/FeedWriter.js')
-rw-r--r--application/palemoon/components/feeds/FeedWriter.js19
1 files changed, 3 insertions, 16 deletions
diff --git a/application/palemoon/components/feeds/FeedWriter.js b/application/palemoon/components/feeds/FeedWriter.js
index d704835bb..facde5815 100644
--- a/application/palemoon/components/feeds/FeedWriter.js
+++ b/application/palemoon/components/feeds/FeedWriter.js
@@ -18,12 +18,7 @@ function LOG(str) {
var prefB = Cc["@mozilla.org/preferences-service;1"].
getService(Ci.nsIPrefBranch);
- var shouldLog = false;
- try {
- shouldLog = prefB.getBoolPref("feeds.log");
- }
- catch (ex) {
- }
+ var shouldLog = prefB.getBoolPref("feeds.log", false);
if (shouldLog)
dump("*** Feeds: " + str + "\n");
@@ -874,11 +869,7 @@ FeedWriter.prototype = {
Cc["@mozilla.org/preferences-service;1"].
getService(Ci.nsIPrefBranch);
- var handler = "bookmarks";
- try {
- handler = prefs.getCharPref(getPrefReaderForType(feedType));
- }
- catch (ex) { }
+ var handler = prefs.getCharPref(getPrefReaderForType(feedType), "bookmarks");
switch (handler) {
case "web": {
@@ -1076,11 +1067,7 @@ FeedWriter.prototype = {
.addEventListener("command", this, false);
// first-run ui
- var showFirstRunUI = true;
- try {
- showFirstRunUI = prefs.getBoolPref(PREF_SHOW_FIRST_RUN_UI);
- }
- catch (ex) { }
+ var showFirstRunUI = prefs.getBoolPref(PREF_SHOW_FIRST_RUN_UI, true);
if (showFirstRunUI) {
var textfeedinfo1, textfeedinfo2;
switch (feedType) {