From c85b58e1884fccff73dc8820ab2aa5b6f13da1fc Mon Sep 17 00:00:00 2001 From: Ahmed Mazen Date: Mon, 10 Jul 2023 20:39:26 +0800 Subject: [PATCH] remove unnecessary logs & make `npm run lint` silent --- www/common/notify.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/www/common/notify.js b/www/common/notify.js index c464d801b..de14072af 100644 --- a/www/common/notify.js +++ b/www/common/notify.js @@ -92,10 +92,9 @@ define(['/api/config'], function (ApiConfig) { if(!document.getElementById("favicon-ico")) { var faviconLink = document.createElement('link'); - attrs.href = attrs.href.replaceAll(".png", ".ico") - console.debug("ATTRS", attrs.href) - attrs.id = 'favicon-ico' - attrs.type = 'image/x-icon' + attrs.href = attrs.href.replaceAll(".png", ".ico"); + attrs.id = 'favicon-ico'; + attrs.type = 'image/x-icon'; delete attrs['data-main-favicon']; delete attrs['data-alt-favicon'];