Søg i 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.

  • Ingen svar
  • 1 har dette problem
  • 4 visninger
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?

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.