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
if (nativeOpen) { const nativeOpenCodeIndex = nativeOpen.toString().indexOf('native code')