Last active
February 21, 2020 02:30
-
-
Save nonopolarity/745d8cec1bccf3f2edaac40e945cdedd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (document.querySelector("#my-tmp-audio") === null) { | |
let aDiv = document.createElement("div"); // can edit gist? | |
aDiv.innerHTML = "<audio controls autoplay id='my-tmp-audio' style='display: none'></audio>"; | |
document.body.appendChild(aDiv); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment