Index: options.js |
=================================================================== |
--- a/options.js |
+++ b/options.js |
@@ -657,17 +657,17 @@ |
if (!confirm(i18n.getMessage("global_remove_subscription_warning"))) |
return; |
removeSubscription(subscription.url); |
}, false); |
getPref("additional_subscriptions", additionalSubscriptions => |
{ |
- if (additionalSubscriptions.indexOf(subscription.url) != -1) |
+ if (additionalSubscriptions.includes(subscription.url)) |
removeButton.style.visibility = "hidden"; |
}); |
let enabled = element.getElementsByClassName("subscriptionEnabled")[0]; |
enabled.addEventListener("click", () => |
{ |
subscription.disabled = !subscription.disabled; |
toggleSubscription(subscription.url, true); |