summaryrefslogtreecommitdiff
path: root/js/CommonDialogs.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-10 09:10:45 +0300
committerAndrew Dolgov <[email protected]>2019-12-10 09:10:45 +0300
commit5b4eb8d7b9f5f00ace949d8f008ab61540ceef8b (patch)
tree1b276642a76b1088b144c2e13083a50f811a5a9d /js/CommonDialogs.js
parenta40f22d8aa0848456cd988b8523537bd1205f490 (diff)
remove unnecessary "== 1" when checking for init params
unsubscribeFeed: check for undefined title correctly
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r--js/CommonDialogs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index e0338a97c..c6d476de0 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -385,7 +385,7 @@ define(["dojo/_base/declare"], function (declare) {
const msg = __("Unsubscribe from %s?").replace("%s", title);
- if (title == undefined || confirm(msg)) {
+ if (typeof title == "undefined" || confirm(msg)) {
Notify.progress("Removing feed...");
const query = {op: "pref-feeds", quiet: 1, method: "remove", ids: feed_id};