I am trying to move my code for navigator.geolocation in a web worker.
I tried it with Chrome and Safari but getting \'undefined\' on
var isGPSSupported =
Inspecting it in chrome, it appears it definitely doesn't have the geolocation attribute:
WorkerNavigator
appName: "Netscape"
appVersion: "5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1"
onLine: true
platform: "Win32"
userAgent: "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1"
__proto__: WorkerNavigator
In Chrome, you can set a breakpoint in your workers. I'd recommend doing this for your errors, its extremely helpful.