The question is: if the key is not found, then the connected js Google issues an alert. How easy is it to ignore this alert and simply not display the map, or intercept the alert in some way and, for example, put the connection result in a variable?
1 answer
The javascript alert () is displayed.
function alert () {}
- Or more simply: function alert () {} before connecting api. Thank! :) - Alex Silaev
- onedidn't want to give someone else's idea for his)) - Georgy
- The correct approach)) I even did this: first, I save the old function, and after redefining, I restore the old one. There is no Alert, and their testing alerts work)) Everything is fine)) - Alex Silaev
|