mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
chore(migration): added hiding migration info bar after clicking accept button
This commit is contained in:
+3
-3
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user