Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use requestDevice({ acceptAllDevices:true }) in rename tool. #61

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

scheib
Copy link
Contributor

@scheib scheib commented Jan 12, 2017

The hack 'anyDeviceFilter' is no longer necessary now that
request device supports acceptAllDevices.

The hack 'anyDeviceFilter' is no longer necessary now that
request device supports acceptAllDevices.
@beaufortfrancois
Copy link
Member

beaufortfrancois commented Jan 12, 2017 via email

@scheib
Copy link
Contributor Author

scheib commented Jan 14, 2017 via email

@@ -161,7 +153,7 @@
throw "No Web Bluetooth support.";

return navigator.bluetooth.requestDevice({
filters: anyDeviceFilter(),
acceptAllDevices:true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind adding a comment like https://github.com/GoogleChrome/samples/pull/458/files#diff-ef7cbca5c52cb429b47a308074bf06bcR7?

+     // filters: [...] <- Prefer filters to save energy & show relevant devices.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants