From f8a9d0f85017537fc2ac5d1cdb7a9a90f22c556e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 06 十二月 2022 14:48:53 +0800
Subject: [PATCH] 2022-12-06

---
 src/index.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/index.js b/src/index.js
index c6693cf..c2afd0c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -201,11 +201,7 @@
     document.title = GLOB.platTitle || ''
 
     if (config.filter === 'true' || (/^20\d{2}-\d{2}-\d{2}$/.test(config.filter) && new Date(config.filter).getTime() + 86400000 >= new Date().getTime())) {
-      let html = document.getElementsByTagName('html')[0]
-      
-      if (html) {
-        html.style.filter = 'grayscale(100%)'
-      }
+      GLOB.filter = true
     }
 
     if (process.env.NODE_ENV === 'production') { // 鐢ㄤ簬鏍¢獙鏄惁瀛樺湪寮�鍙戞潈闄�

--
Gitblit v1.8.0