diff options
author | Dave Arter <davea@mysociety.org> | 2017-11-24 10:22:15 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-11-24 13:57:42 +0000 |
commit | d92f7d8f839623a0b11282073f377009d4f89220 (patch) | |
tree | 2bb00d2d9ef76a5027efd1b524403ba291ffa0ba /web/js/front.js | |
parent | 5777b0be63e1200880671aaf7128ca7e0ebb18f9 (diff) |
Hide geolocation link if not on HTTPS
Modern browsers disable geolocation on non-HTTPS pages, but
sadly still report it as available with the `navigator.geolocation`
object. This commit adds a check for HTTPS and hides the link
if it won’t work.
Diffstat (limited to 'web/js/front.js')
0 files changed, 0 insertions, 0 deletions