From 38551fe5c69182061b9acb04fc019644775957b6 Mon Sep 17 00:00:00 2001 From: Donnie Yang Date: Wed, 25 Sep 2024 23:56:22 +0800 Subject: [PATCH] remove redundant code in KeySelect, no chrome.storage.sync anymore --- src/components/KeySelect.jsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/KeySelect.jsx b/src/components/KeySelect.jsx index 1f86ed1..a0c6da1 100644 --- a/src/components/KeySelect.jsx +++ b/src/components/KeySelect.jsx @@ -51,9 +51,6 @@ export default function KeySelect() { chrome.storage.local.set(data, () => { console.log('MOUSE_AND_KEY is saved', data); }) - // chrome.storage.sync.set(data, () => { - // console.log('MOUSE_AND_KEY is saved', data); - // }); }; React.useEffect(() => { @@ -67,15 +64,6 @@ export default function KeySelect() { setValue(value); } }) - // chrome.storage.sync.get(key, result => { - // const value = result[key]; - // console.log('MOUSE_AND_KEY result,value', result, value); - // if (value === null || value === undefined || value === 'none') { - // setValue('none'); - // } else { - // setValue(value); - // } - // }); }, []); return (