summaryrefslogtreecommitdiffstats
path: root/assets/js/watched_widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/watched_widget.js')
-rw-r--r--assets/js/watched_widget.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/js/watched_widget.js b/assets/js/watched_widget.js
index 22afb054..bd037c2b 100644
--- a/assets/js/watched_widget.js
+++ b/assets/js/watched_widget.js
@@ -14,8 +14,8 @@ function mark_watched(target) {
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status != 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status !== 200) {
tile.style.display = '';
}
}
@@ -39,8 +39,8 @@ function mark_unwatched(target) {
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function () {
- if (xhr.readyState == 4) {
- if (xhr.status != 200) {
+ if (xhr.readyState === 4) {
+ if (xhr.status !== 200) {
count.innerText = count.innerText - 1 + 2;
tile.style.display = '';
}