0x978 / GeoGuessr_Resolver

A script which returns the correct location in Geoguessr
https://greasyfork.org/en/scripts/450253-geoguessr-resolver-hack-7-5-duels-and-google-maps-update
48 stars 7 forks source link

your code's issue i found it #26

Closed aaKingRamos closed 4 months ago

aaKingRamos commented 5 months ago

if (nativeOpen) { const nativeOpenCodeIndex = nativeOpen.toString().indexOf('native code')

    // Reject any attempt to call an overridden window.open, or fail.
    // 19 is for chromium-based browsers; 23 is for firefox-based browsers.
    if (nativeOpenCodeIndex === 19 || nativeOpenCodeIndex === 23) {
        nativeOpen(`https://maps.google.com/?output=embed&q=${lat},${lng}&ll=${lat},${lng}&z=5`);

        it says no-undef - nativeopen is not defined