Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Issue in accesssing the current state for "allowed" or "denied" in Javascript code.

  • Atsakymų nėra
  • 1 has this problem
more options

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?

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.