문제

Is it possible to create a custom user permission request dialog for HTML5 APIs (e.g geolocation or getUserMedia) so they look the same across all browsers?

도움이 되었습니까?

해결책

Thankfully, no!

If you were able to create your own, you might phrase the question (and buttons) misleadingly. Just like you can't style the onbeforeunload popup.

Anything that is outside your sandbox, and you're trying to get access to, has to be controlled by the browser UI. Otherwise it'll just be complete and utter mayhem.

다른 팁

are you talking about having one custom style of all api authentications, across multiple API's, most API's such as facebook, instagram, foursquare, google etc, have their own dialogs you have to use in order to auth, so I believe creating a custom one would be not possible, although I hate saying things aren't possible. But also in terms of HTML5 API's they cannot be customized

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top