geolocation - Cannot determine user position over GeoPoint.current() in Baqend -


i'm trying determine user's position in baqend, error every time:

promise { <rejected> referenceerror: navigator not defined @ c:\users\user\documents\github\sunaware\node_modules\baqend\lib\geopoint.js:19:7 @ function.current (c:\users\user\documents\github\sunaware\node_modules\baqend\lib\geopoint.js:18:12) @ repl:1:13 @ siginthandlerswrap (vm.js:22:35) @ siginthandlerswrap (vm.js:73:12) @ contextifyscript.script.runinthiscontext (vm.js:21:12) @ replserver.defaulteval (repl.js:340:29) @ bound (domain.js:280:14) @ replserver.runbound [as eval] (domain.js:293:12) @ replserver.<anonymous> (repl.js:538:10) } 

(node:6652) unhandledpromiserejectionwarning: unhandled promise rejection (rejection id: 1): referenceerror: navigator not defined

i'm exclusively working on terminal right now, these inputs:

> node > var db = require('baqend') > db.connect('my-app') > db.login('user', 'password') > db.geopoint.current() 

what i'm doing wrong? exclusively working on localhost right now, shouldn't matter if i'm having ssl connection or not.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -