Re: [web-bluetooth] When a device causes a page to open, the page should be able to find the device

Thanks for the document @jyasskin, that explains pretty well what I 
was thinking of regarding the question I asked at yesterday's F2F.

FWIW I like the approach using `navigator.bluetooth.referringDevice`, 
as it makes the page initialization code pretty clean.  Also things 
appended to the URL might get lost or munged during redirects.

```
if (navigator.bluetooth.referringDevice) {
  connectToServices(navigator.bluetooth.referringDevice);
} else {
  connectDeviceButton.onclick = function() { 
navigator.bluetooth.requestDevice
      .then(connectToServices); };
}
```

-- 
GitHub Notif of comment by mfoltzgoogle
See 
https://github.com/WebBluetoothCG/web-bluetooth/issues/163#issuecomment-151356768

Received on Tuesday, 27 October 2015 03:04:43 UTC