本文介紹了Firefox 11 和 GeoLocation 拒絕回調的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
Firefox 10.x 一切正常,但升級到 Firefox 11 時出現問題.
Things worked okay is Firefox 10.x but with the upgrade to Firefox 11 has thrown up a problem.
我用
navigator.geolocation.getCurrentPosition(success, failure)
但在FF11中,當用戶通過選擇Not Now"拒絕共享位置時,不會執行失敗回調.
but in FF11 the failure callback is not executed when the user denies sharing location by selecting "Not Now".
有什么建議嗎?
推薦答案
好的,所以現在的答案是:不可能,Firefox 在設計上不會觸發失敗事件.圍繞這個約束構建您的應用程序."
Okay, so the answer for now is: "Not possible, Firefox by design will not fire the failure event. Build your app around this constraint."
這篇關于Firefox 11 和 GeoLocation 拒絕回調的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!