diff options
author | Andrew Dolgov <[email protected]> | 2019-12-10 09:10:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-12-10 09:10:45 +0300 |
commit | 5b4eb8d7b9f5f00ace949d8f008ab61540ceef8b (patch) | |
tree | 1b276642a76b1088b144c2e13083a50f811a5a9d /js/CommonDialogs.js | |
parent | a40f22d8aa0848456cd988b8523537bd1205f490 (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.js | 2 |
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}; |