diff --git a/index.html b/index.html
index 4ae9682a..0ca388ab 100644
--- a/index.html
+++ b/index.html
@@ -28,14 +28,6 @@
-
guitos
diff --git a/public/_headers b/public/_headers
index 11345f45..61995718 100644
--- a/public/_headers
+++ b/public/_headers
@@ -1,7 +1,7 @@
/*
Referrer-Policy: no-referrer
Permissions-Policy: accelerometer=(), autoplay=(self), camera=(), display-capture=(self), fullscreen=(self), geolocation=(self), gyroscope=(self), magnetometer=(self), microphone=(), payment=(), picture-in-picture=(self), sync-xhr=(), usb=()
- Content-Security-Policy: default-src 'self'; img-src https://guitos.app https://www.w3.org data:; frame-ancestors 'none'; script-src 'sha256-rx9EtEVmqxUIzMXrtl4DeG1J3qw+cWA3RniGteNFzho=';
+ Content-Security-Policy: default-src 'self'; img-src https://guitos.app https://www.w3.org data:; frame-ancestors 'none';
https://guitos.pages.dev/*
X-Robots-Tag: noindex
\ No newline at end of file
diff --git a/src/index.tsx b/src/index.tsx
index b9fdeb2f..838d252f 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -11,6 +11,14 @@ const updateSW = registerSW({
}
},
});
+
+if (window.location.pathname === "/") {
+ const lastOpenedBudget = localStorage.getItem("guitos_lastOpenedBudget");
+ if (lastOpenedBudget) {
+ window.location.pathname = `/${lastOpenedBudget}`;
+ }
+}
+
const rootElement = document.getElementById("root");
const root = rootElement && ReactDOM.createRoot(rootElement);