Skip to content

Instantly share code, notes, and snippets.

View jyasskin's full-sized avatar
💭
Back on Monday

Jeffrey Yasskin jyasskin

💭
Back on Monday
View GitHub Profile
@beaufortfrancois
beaufortfrancois / web-bluetooth-permissions-proposal.js
Last active February 14, 2024 06:17
Web Bluetooth + Permissions API
function connectDevice(device) {
return device.connectGATT()
.then(...)
}
// Simple
permissions.query({ name: 'bluetooth' })
.then(permission => {
if (permission.state != 'granted') {