Skip to content

Commit 7e9e30a

Browse files
Patch
1 parent 1936cdb commit 7e9e30a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

web/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,12 @@
2727
</head>
2828
<body>
2929
<div id="map"></div>
30+
<script>
31+
new MutationObserver(() => {
32+
const f = document.querySelector('.leaflet-fog-of-war');
33+
if (!f) location.reload();
34+
else if (f.style.display === 'none') f.style.display = 'block';
35+
}).observe(document.getElementById('map'), { childList: true, subtree: true });
36+
</script>
3037
</body>
3138
</html>

0 commit comments

Comments
 (0)