From 082e070aea119f1b4dd6a84ba10697d8065f5b19 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 18 Mar 2026 13:57:29 +0100 Subject: [PATCH] fix: handle undefined chrome handling in api initialization --- src/App.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 9b50695..af09e1a 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -5,7 +5,7 @@ import { faCircleInfo } from "@fortawesome/free-solid-svg-icons"; import { ThemeToggle } from "./components/ThemeToggle"; // eslint-disable-next-line no-undef -const api = typeof browser !== "undefined" ? browser : chrome; +const api = typeof browser !== "undefined" ? browser : (typeof chrome !== "undefined" ? chrome : null); const App = () => { const [secret, setSecret] = useState('');