Javascript – It is possible to know when the user clicked on "Allow" or "Deny" while using the Geolocation API and browser permissions?
I need to know whether the user clicked on "Allow" or "Deny" while accessing a webpage built using React+Typescript but so far I have been unable to get it working properly. See the following piece of code: import { useEffect,…