aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/web-util/package.json3
-rw-r--r--packages/web-util/src/hooks/useLocalStorage.ts1
-rw-r--r--packages/web-util/tsconfig.json1
3 files changed, 4 insertions, 1 deletions
diff --git a/packages/web-util/package.json b/packages/web-util/package.json
index 3451bc0ad..f89d0bb73 100644
--- a/packages/web-util/package.json
+++ b/packages/web-util/package.json
@@ -50,5 +50,8 @@
"tslib": "^2.4.0",
"typescript": "^4.9.4",
"ws": "7.4.5"
+ },
+ "dependencies": {
+ "@types/chrome": "0.0.197"
}
} \ No newline at end of file
diff --git a/packages/web-util/src/hooks/useLocalStorage.ts b/packages/web-util/src/hooks/useLocalStorage.ts
index 264919d37..dd6c5def8 100644
--- a/packages/web-util/src/hooks/useLocalStorage.ts
+++ b/packages/web-util/src/hooks/useLocalStorage.ts
@@ -50,7 +50,6 @@ export function useLocalStorage(
useEffect(() => {
return storage.onUpdate(key, () => {
const newValue = storage.get(key);
- console.log("new value", key, newValue);
setStoredValue(newValue ?? initialValue);
});
}, []);
diff --git a/packages/web-util/tsconfig.json b/packages/web-util/tsconfig.json
index 3965f537d..e2ac248aa 100644
--- a/packages/web-util/tsconfig.json
+++ b/packages/web-util/tsconfig.json
@@ -9,6 +9,7 @@
"moduleResolution": "Node16",
"sourceMap": true,
"lib": [
+ "DOM",
"es6"
],
"outDir": "lib",