tmp: geolocation to test through https (must push to master) sorry ..

This commit is contained in:
xdrm-brackets 2017-12-07 22:36:04 +01:00
parent b7d22fad31
commit dc167766fa
2 changed files with 10 additions and 2 deletions

View File

@ -56,3 +56,8 @@ require('./websocket');
/* (3) Remove global ref to router */ /* (3) Remove global ref to router */
delete window._router_; delete window._router_;
/* (4) Get geolocation
---------------------------------------------------------*/
navigator.geolocation && navigator.geolocation.getCurrentPosition(function(a, b){ console.log(this, a, b); }, null);

View File

@ -138,3 +138,6 @@ gstore.add('msg_pending', {
// notification stack visibility // notification stack visibility
gstore.add('nstack', false); gstore.add('nstack', false);
// location
gstore.add('loc', [0, 0]);