- From: Mark Foltz via GitHub <sysbot+gh@w3.org>
- Date: Tue, 27 Oct 2015 03:04:40 +0000
- To: public-web-bluetooth-log@w3.org
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