Skip to content

Commit 1e0fe1b

Browse files
committed
Fix iframe reference in performAppLaunchZoneCheck to use coverageFrameEl for centering map
1 parent a87800d commit 1e0fe1b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

content/wardrive.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,10 +1058,9 @@ async function performAppLaunchZoneCheck() {
10581058

10591059
// Center map on checked location
10601060
try {
1061-
const iframe = coverageFrame.querySelector("iframe");
1062-
if (iframe && iframe.contentWindow) {
1061+
if (coverageFrameEl && coverageFrameEl.contentWindow) {
10631062
debugLog(`[GEO AUTH] [INIT] Centering map on checked location: ${coords.lat.toFixed(6)}, ${coords.lon.toFixed(6)}`);
1064-
iframe.contentWindow.postMessage({
1063+
coverageFrameEl.contentWindow.postMessage({
10651064
type: "centerMap",
10661065
lat: coords.lat,
10671066
lon: coords.lon

0 commit comments

Comments
 (0)