Compare commits

..

2 Commits

Author SHA1 Message Date
Jose
082e070aea fix: handle undefined chrome handling in api initialization 2026-03-18 13:57:29 +01:00
Jose
edf404542b bump: update version to 4.1 in manifest.json 2026-03-18 13:48:17 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "US 2FA Autofill",
"version": "4.0",
"version": "4.1",
"description": "Rellena automáticamente el código 2FA en la Universidad de Sevilla.",
"permissions": [
"storage"

View File

@@ -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('');