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

@ -55,4 +55,9 @@ window._router_ = router;
require('./websocket'); 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

@ -137,4 +137,7 @@ gstore.add('msg_pending', {
}); // true when message send pending }); // true when message send pending
// notification stack visibility // notification stack visibility
gstore.add('nstack', false); gstore.add('nstack', false);
// location
gstore.add('loc', [0, 0]);