how to check for popup permission in javascript

Hey folks I want to open the new window and we know that for that popup permission should be allowed so I want to check if I my app has permission to open the popup
1 Reply
Jochem
Jochem3y ago
I don't think that you can. What I found online is that window.open returns a reference to the new window if it succeeded in opening the popup, but that way you won't know until you try there's a permissions api that you can use to check for certain permissions, but that's more the type of permissions to access the camera or geolocation, not popups in general, I'd advise against using popups though. It's almost never the best experience you can offer your user
Want results from more Discord servers?
Add your server