summaryrefslogtreecommitdiff
path: root/js/CommonDialogs.js
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-12 21:02:39 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-12 21:34:29 +0000
commit39182a76e4070d3b92af10bf609fef8151bce6e4 (patch)
tree806c6e1b1ab421a2631f5e9062a8988480f8ba31 /js/CommonDialogs.js
parent1299d632bdc8b676d3fc2114a1788a2f8f63597c (diff)
Address ESLint rule 'eqeqeq'.
https://eslint.org/docs/latest/rules/eqeqeq
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r--js/CommonDialogs.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js
index f1be94c7c..a9395d62e 100644
--- a/js/CommonDialogs.js
+++ b/js/CommonDialogs.js
@@ -332,7 +332,7 @@ const CommonDialogs = {
addLabel: function() {
const caption = prompt(__("Please enter label caption:"), "");
- if (caption != undefined && caption.trim().length > 0) {
+ if (caption !== undefined && caption.trim().length > 0) {
const query = {op: "Pref_Labels", method: "add", caption: caption.trim()};
@@ -351,7 +351,7 @@ const CommonDialogs = {
const msg = __("Unsubscribe from %s?").replace("%s", title);
- if (typeof 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};
@@ -360,7 +360,7 @@ const CommonDialogs = {
if (App.isPrefs()) {
dijit.byId("feedTree").reload();
} else {
- if (feed_id == Feeds.getActive())
+ if (feed_id === Feeds.getActive())
setTimeout(() => {
Feeds.openDefaultFeed();
},
@@ -396,10 +396,10 @@ const CommonDialogs = {
}
},
uploadIcon: function(input) {
- if (input.files.length != 0) {
+ if (input.files.length !== 0) {
const icon_file = input.files[0];
- if (icon_file.type.indexOf("image/") == -1) {
+ if (icon_file.type.indexOf("image/") === -1) {
alert(__("Please select an image file."));
return;
}
@@ -501,7 +501,7 @@ const CommonDialogs = {
xhr.json("backend.php", {op: "Pref_Feeds", method: "editfeed", id: feed_id}, (reply) => {
const feed = reply.feed;
- const is_readonly = reply.user.access_level == App.UserAccessLevels.ACCESS_LEVEL_READONLY;
+ const is_readonly = reply.user.access_level === App.UserAccessLevels.ACCESS_LEVEL_READONLY;
// for unsub prompt
dialog.feed_title = feed.title;