Skip to content

Commit

Permalink
fix blink mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tzhf committed Feb 20, 2024
1 parent e181952 commit 3ccc02a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utils/mods/blinkMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ export function blinkMode() {
};

let mapRoot = null;
function getMapRoot() {
return document.querySelector("[data-qa=panorama]");
}

function hidePanorama() {
mapRoot = document.querySelector(".mapsConsumerUiSceneInternalCoreScene__root") || mapRoot;
mapRoot = getMapRoot() || mapRoot;
hidePanoramaCached();
}

Expand All @@ -133,7 +137,7 @@ export function blinkMode() {
}

function showPanorama() {
mapRoot = document.querySelector(".mapsConsumerUiSceneInternalCoreScene__root") || mapRoot;
mapRoot = getMapRoot() || mapRoot;
showPanoramaCached();
}

Expand Down

0 comments on commit 3ccc02a

Please sign in to comment.