Skip to content

Commit

Permalink
remove redundant code in KeySelect, no chrome.storage.sync anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
dgutyanghs committed Sep 25, 2024
1 parent 7666fa5 commit 38551fe
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/KeySelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -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 (
Expand Down

0 comments on commit 38551fe

Please sign in to comment.