fix no element error

pull/367/head
jingjingxyk 3 years ago
parent 8f680c989c
commit b501116c2f

@ -2,6 +2,7 @@
let URLObj = new URL(location.href) let URLObj = new URL(location.href)
console.log(URLObj) console.log(URLObj)
if( document.querySelector("#readme table tbody")) {
let audio_player = new Audio() let audio_player = new Audio()
audio_player.setAttribute('autoplay', 'true') audio_player.setAttribute('autoplay', 'true')
@ -28,4 +29,5 @@
audio_player.setAttribute('src', audio_url); audio_player.setAttribute('src', audio_url);
} }
}) })
}
} }
Loading…
Cancel
Save