diff --git a/app/static/js/nopaque.js b/app/static/js/nopaque.js index f06950ed..23952221 100644 --- a/app/static/js/nopaque.js +++ b/app/static/js/nopaque.js @@ -1,5 +1,3 @@ -var darkModeEnabled = false; -var flashedMessages = []; var socket = io(); var corpora; @@ -90,7 +88,7 @@ socket.on('update-foreign-jobs', function(msg) { }); -document.addEventListener('DOMContentLoaded', function() { +document.addEventListener("DOMContentLoaded", function() { M.AutoInit(); M.CharacterCounter.init(document.querySelectorAll(`input[data-length][type="text"]`)); M.Dropdown.init(document.getElementById("nav-notifications"), @@ -102,11 +100,5 @@ document.addEventListener('DOMContentLoaded', function() { entry.parentNode.classList.add("active"); } } - if (darkModeEnabled) { - DarkReader.enable({"brightness": 100, "contrast": 100, "sepia": 0}); - } - for (flashedMessage of flashedMessages) { - toast(flashedMessage); - } - socket.emit('subscribe_user_ressources'); + socket.emit("subscribe_user_ressources"); }); diff --git a/app/templates/admin/user.html.j2 b/app/templates/admin/user.html.j2 index 6bc49613..d54fdd9e 100644 --- a/app/templates/admin/user.html.j2 +++ b/app/templates/admin/user.html.j2 @@ -100,9 +100,8 @@ {% endblock %} diff --git a/app/templates/base.html.j2 b/app/templates/base.html.j2 index b4a6b9e9..d548207a 100644 --- a/app/templates/base.html.j2 +++ b/app/templates/base.html.j2 @@ -20,14 +20,6 @@ -