diff --git a/src/App.vue b/src/App.vue index 138a586..32d350e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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'); diff --git a/src/components/app/Footer.vue b/src/components/app/Footer.vue index c454ecc..c3c5780 100644 --- a/src/components/app/Footer.vue +++ b/src/components/app/Footer.vue @@ -34,7 +34,7 @@ import { useStore } from '../../store'; export default defineComponent({ data() { return { - isOnProductionHost: location.hostname == 'pojazdownik-td2.web.app', + isOnProductionHost: location.hostname == 'pojazdownik-td2.web.app' || location.hostname == 'pojazdownik-td2.spythere.eu', VERSION: packageInfo.version, store: useStore(), }; diff --git a/src/components/app/MigrationInfo.vue b/src/components/app/MigrationInfo.vue index a5c6b27..66805ea 100644 --- a/src/components/app/MigrationInfo.vue +++ b/src/components/app/MigrationInfo.vue @@ -1,12 +1,26 @@ - +