From 4dfaa17c449fac41137bea130b58b57d4ec45854 Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Sun, 2 Apr 2023 23:24:36 +0000 Subject: [PATCH] More Deepsource shit, AAAAAAAAAAAAA --- gallery/static/js/notifications.js | 6 +++--- gallery/static/js/uploadTab.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gallery/static/js/notifications.js b/gallery/static/js/notifications.js index 80d75eb..6b4f9d7 100644 --- a/gallery/static/js/notifications.js +++ b/gallery/static/js/notifications.js @@ -25,13 +25,13 @@ function addNotification(notificationText, notificationLevel) { iconElement.classList.add('sniffle__notification-icon'); notification.appendChild(iconElement); // Set the icon based on the notification level, not pretty but it works :3 - if (notificationLevel == 1) { + if (notificationLevel === 1) { notification.classList.add('success'); iconElement.innerHTML = successIcon; - } else if (notificationLevel == 2) { + } else if (notificationLevel === 2) { notification.classList.add('critical'); iconElement.innerHTML = criticalIcon; - } else if (notificationLevel == 3) { + } else if (notificationLevel === 3) { notification.classList.add('warning'); iconElement.innerHTML = warningIcon; } else { diff --git a/gallery/static/js/uploadTab.js b/gallery/static/js/uploadTab.js index 6427ec0..689b5bc 100644 --- a/gallery/static/js/uploadTab.js +++ b/gallery/static/js/uploadTab.js @@ -175,7 +175,7 @@ document.addEventListener('DOMContentLoaded', function() { let uploadTabDrag = uploadTab.querySelector("#dragIndicator"); let uploadForm = uploadTab.querySelector('#uploadForm'); - let jobList = document.querySelector(".upload-jobs"); + // let jobList = document.querySelector(".upload-jobs"); let fileDrop = uploadForm.querySelector('.fileDrop-block'); let fileDropTitle = fileDrop.querySelector('.status');