From 5b4eb8d7b9f5f00ace949d8f008ab61540ceef8b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 10 Dec 2019 09:10:45 +0300 Subject: remove unnecessary "== 1" when checking for init params unsubscribeFeed: check for undefined title correctly --- js/CommonDialogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/CommonDialogs.js') 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}; -- cgit v1.2.3