diff --git a/.eslintrc.json b/.eslintrc.json index f3f1c8e1..2b4f6c4e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,9 +10,5 @@ "ecmaVersion": "latest", "sourceType": "module" // add this line to allow 'import' and 'export' statements }, - "rules": { - "indent": ["error", 2], - "quotes": ["error", "single"], - "semi": ["error", "always"] - } + "rules": {} } \ No newline at end of file diff --git a/src/SEQTA.js b/src/SEQTA.js index 8d4a9236..b9b80c44 100644 --- a/src/SEQTA.js +++ b/src/SEQTA.js @@ -1326,17 +1326,6 @@ async function AddBetterSEQTAElements(toggle) { updateAllColors(DarkMode, result.selectedColor); - // Locate the menuToggle element - const menuToggle = document.getElementById('menuToggle'); - menuToggle.innerHTML = ''; - - // Create three divs to act as lines of the hamburger icon - for (let i = 0; i < 3; i++) { - const line = document.createElement('div'); - line.className = 'hamburger-line'; - menuToggle.appendChild(line); - } - document.getElementById('LightDarkModeButton').addEventListener('click', async () => { const result = await new Promise(resolve => { chrome.storage.local.get(null, resolve); @@ -1350,6 +1339,17 @@ async function AddBetterSEQTAElements(toggle) { const darklightText = document.getElementById('darklighttooliptext'); darklightText.innerText = GetLightDarkModeString(newDarkMode); }); + + // Locate the menuToggle element + const menuToggle = document.getElementById('menuToggle'); + menuToggle.innerHTML = ''; + + // Create three divs to act as lines of the hamburger icon + for (let i = 0; i < 3; i++) { + const line = document.createElement('div'); + line.className = 'hamburger-line'; + menuToggle.appendChild(line); + } } else { // Creates settings and dashboard buttons next to alerts SettingsButton = stringToHTML( @@ -2319,7 +2319,7 @@ function SendHomePage() { document.getElementById('home-container').append(upcomingcontainer); // Creates the notices container into the home container - var NoticesStr = '