From 1715e8fa7f6bda9f22b90c5630e6c4d32fd3e257 Mon Sep 17 00:00:00 2001 From: kaffem <29717789+kaffem@users.noreply.github.com> Date: Wed, 29 Jul 2020 23:09:13 +0200 Subject: [PATCH] using space indentation instead of tab --- enhancements/notifications.js | 8 ++++---- manifest.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/enhancements/notifications.js b/enhancements/notifications.js index 310dffd..af1b7e5 100644 --- a/enhancements/notifications.js +++ b/enhancements/notifications.js @@ -3,8 +3,8 @@ runAfterLoad(() => { }, ".*"); function displayNotificationsInTitle(){ -let menu = document.getElementById('materialize-menu-dropdown'); -let menuDropdowns = Array.from(menu.querySelectorAll('ul.dropdown')).slice(-1)[0]; -let notificationText = menuDropdowns.innerText.split(" ")[3]; -document.querySelector('head > title').insertAdjacentText('afterbegin', notificationText.split(" ")[1] + ' '); + let menu = document.getElementById('materialize-menu-dropdown'); + let menuDropdowns = Array.from(menu.querySelectorAll('ul.dropdown')).slice(-1)[0]; + let notificationText = menuDropdowns.innerText.split(" ")[3]; + document.querySelector('head > title').insertAdjacentText('afterbegin', notificationText.split(" ")[1] + ' '); } \ No newline at end of file diff --git a/manifest.json b/manifest.json index a975e11..24ac9e7 100644 --- a/manifest.json +++ b/manifest.json @@ -23,7 +23,7 @@ "js": [ "enhancements/quickSearch.js", "enhancements/animeRequests.js", - "enhancements/notifications.js" + "enhancements/notifications.js" ], "run_at": "document_end" }