navigator.geolocation.getCurrentPosition sometimes works sometimes doesn't

前端 未结 25 1902
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 13:33

So I have a pretty simple bit of JS using the navigator.geolocation.getCurrentPosition jammy.

$(document).ready(function(){
  $(\"#business-locate, #people-l         


        
25条回答
  •  温柔的废话
    2020-11-22 14:18

    This happened to me when using Firefox's responsive design mode. There has been a bug report filed. For now, just don't use responsive design mode while using the Geolocation API.

提交回复
热议问题