update map image, iframe detection ignores new map modal

This commit is contained in:
Will Freeman
2026-04-19 16:12:25 -06:00
parent eb27a0d911
commit 4ac462d7ed
2 changed files with 2 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 253 KiB

+2 -1
View File
@@ -38,10 +38,11 @@ import { ref, computed, onMounted } from 'vue';
const STORAGE_KEY = 'new-map-notice-dismissed';
const comingFromNewMap = document.referrer.includes('maps.deflock.org');
const isIframe = window.self !== window.top;
const show = ref(false);
onMounted(() => {
if (!comingFromNewMap && !localStorage.getItem(STORAGE_KEY)) {
if (!comingFromNewMap && !isIframe && !localStorage.getItem(STORAGE_KEY)) {
show.value = true;
}
});