Issue in accesssing the current state for "allowed" or "denied" in Javascript code.
I was including code in javascript for asking the user about the location and the prompt is coming for asking the location and if now I console log with navigator.permission.query({name:geolocation}) then in state i am getting "prompt" which is fine but after allowing or denying i am not getting "allowed" or "denied" its still "prompt" but this things work fine in chrome. so is there any other object which is storing this state? for Mozilla or just Mozilla doesn't support this?
I was including code in javascript for asking the user about the location and the prompt is coming for asking the location and if now I console log with navigator.permission.query({name:geolocation}) then in state i am getting "prompt" which is fine but after allowing or denying i am not getting "allowed" or "denied" its still "prompt" but this things work fine in chrome. so is there any other object which is storing this state? for Mozilla or just Mozilla doesn't support this?