mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:05:56 +00:00
remove unnecessary "== 1" when checking for init params
unsubscribeFeed: check for undefined title correctly
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user