mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-04-21 10:55:59 +02:00
update map image, iframe detection ignores new map modal
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 174 KiB After Width: | Height: | Size: 253 KiB |
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user