chore: initial linting fixes for JS in docs/fiddles (#37689)

This commit is contained in:
David Sanders 2023-04-05 06:42:20 -07:00 committed by GitHub
parent be32740991
commit db27b9f433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 122 additions and 134 deletions

View file

@ -1,4 +1,4 @@
async function testIt() {
async function testIt () {
const grantedDevices = await navigator.hid.getDevices()
let grantedDeviceList = ''
grantedDevices.forEach(device => {
@ -10,10 +10,10 @@ async function testIt() {
})
grantedDeviceList = ''
grantedDevices2.forEach(device => {
grantedDevices2.forEach(device => {
grantedDeviceList += `<hr>${device.productName}</hr>`
})
document.getElementById('granted-devices2').innerHTML = grantedDeviceList
}
document.getElementById('clickme').addEventListener('click',testIt)
document.getElementById('clickme').addEventListener('click', testIt)