Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught (in promise): Event: {\"isTrusted\":true}

My Angular 5 application is getting this error in the polyfills bundle on some browsers. Since it does not happen on my own browser, I can't reproduce it or find out anything more about it - I'm just posting the errors that happen on the front-end -.

Any idea where it might be coming from?

like image 404
RTYX Avatar asked Mar 05 '19 13:03

RTYX


People also ask

What is isTrusted true?

The isTrusted read-only property of the Event interface is a boolean value that is true when the event was generated by a user action, and false when the event was created or modified by a script or dispatched via EventTarget.

What is isTrusted in Javascript?

Definition and Usage. The isTrusted event property returns a Boolean value indicating whether the event is trusted or not. Note: In Chrome, Firefox and Opera, the event is trusted if it is invoked by the user, and not trusted if it is invoked by a script.


1 Answers

For anyone interested: the error was happening because clients were blocking the Google Maps Services, but I was trying to load it anyway and not catching the rejected promise.

Now I'm just checking if Google Maps is being blocked before trying to place a map.

like image 86
RTYX Avatar answered Sep 18 '22 09:09

RTYX