More Deepsource shit, AAAAAAAAAAAAA

This commit is contained in:
Michał Gdula 2023-04-02 23:24:36 +00:00
parent 36a7f83db6
commit 4dfaa17c44
2 changed files with 4 additions and 4 deletions

View file

@ -25,13 +25,13 @@ function addNotification(notificationText, notificationLevel) {
iconElement.classList.add('sniffle__notification-icon'); iconElement.classList.add('sniffle__notification-icon');
notification.appendChild(iconElement); notification.appendChild(iconElement);
// Set the icon based on the notification level, not pretty but it works :3 // Set the icon based on the notification level, not pretty but it works :3
if (notificationLevel == 1) { if (notificationLevel === 1) {
notification.classList.add('success'); notification.classList.add('success');
iconElement.innerHTML = successIcon; iconElement.innerHTML = successIcon;
} else if (notificationLevel == 2) { } else if (notificationLevel === 2) {
notification.classList.add('critical'); notification.classList.add('critical');
iconElement.innerHTML = criticalIcon; iconElement.innerHTML = criticalIcon;
} else if (notificationLevel == 3) { } else if (notificationLevel === 3) {
notification.classList.add('warning'); notification.classList.add('warning');
iconElement.innerHTML = warningIcon; iconElement.innerHTML = warningIcon;
} else { } else {

View file

@ -175,7 +175,7 @@ document.addEventListener('DOMContentLoaded', function() {
let uploadTabDrag = uploadTab.querySelector("#dragIndicator"); let uploadTabDrag = uploadTab.querySelector("#dragIndicator");
let uploadForm = uploadTab.querySelector('#uploadForm'); let uploadForm = uploadTab.querySelector('#uploadForm');
let jobList = document.querySelector(".upload-jobs"); // let jobList = document.querySelector(".upload-jobs");
let fileDrop = uploadForm.querySelector('.fileDrop-block'); let fileDrop = uploadForm.querySelector('.fileDrop-block');
let fileDropTitle = fileDrop.querySelector('.status'); let fileDropTitle = fileDrop.querySelector('.status');