OiO.lk Blog javascript Prevent Chrome location reload warning banner
javascript

Prevent Chrome location reload warning banner


When changing site location permissions in Chrome, this banner slides into view prompting you to reload the page:

However, with the Permissions API, it’s possible to detect and respond to Geolocation permission changes with JS, making the banner redundant.

Is there any way to prevent it? I assume no, it’s a deliberate choice by Chrome because it probably will apply to most sites.



You need to sign in to view this answers

Exit mobile version