chore(migration): added hiding migration info bar after clicking accept button

This commit is contained in:
2026-03-07 18:45:43 +01:00
parent 70c5ec8d2e
commit 7f9caa5100
4 changed files with 33 additions and 9 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ registerSW({
onMounted(() => {
loadStockDataFromStorage();
showMigrationInfo();
handleMigrationInfo();
store.setupAPIData();
});
@@ -37,9 +37,9 @@ watchEffect(() => {
}
});
function showMigrationInfo() {
function handleMigrationInfo() {
// Show only on old domain
if (location.hostname !== 'pojazdownik-td2.web.app' && location.hostname !== 'localhost') return;
if (location.hostname !== 'pojazdownik-td2.web.app') return;
const showInfo = localStorage.getItem('showMigrationInfo');