From 1355c9b331c51a29dad1cd73ec8cb2d7a24af27d Mon Sep 17 00:00:00 2001 From: "zhoulibin@xiaoxin" <125377187@qq.com> Date: Fri, 5 Jul 2024 16:44:34 +0800 Subject: [PATCH] lint --- addon/prefs.js | 2 +- src/component/PopupRoot.tsx | 1277 +++++++++++++++++------------------ 2 files changed, 637 insertions(+), 642 deletions(-) diff --git a/addon/prefs.js b/addon/prefs.js index 78f2fd4c..c7e24012 100644 --- a/addon/prefs.js +++ b/addon/prefs.js @@ -17,4 +17,4 @@ pref("__prefsPrefix__.split-nested-tags-keep-first", true); pref("__prefsPrefix__.split-nested-tags-keep-second", true); pref("__prefsPrefix__.show-query-href", false); -pref("__prefsPrefix__.google-scholar-mirroring", ""); +pref("__prefsPrefix__.google-scholar-mirroring", ""); diff --git a/src/component/PopupRoot.tsx b/src/component/PopupRoot.tsx index ae8a8b7b..b88290c9 100644 --- a/src/component/PopupRoot.tsx +++ b/src/component/PopupRoot.tsx @@ -538,7 +538,7 @@ export function PopupRoot({ const [configName, setConfigName] = useState(getPref("configName")); function selectConfig(config: Config) { setShowConfig(false); - setPref("show-config", false) + setPref("show-config", false); setConfigName(config.configName); setPref("configName", config.configName); setBgColor(config.bgColor); @@ -600,713 +600,712 @@ export function PopupRoot({ // setTimeout(() => setShowConfig(true)); } - const handleContentDiv = React.useCallback(() => ( -