Skip to content

Instantly share code, notes, and snippets.

@martzcodes
Created May 5, 2019
Embed
What would you like to do?
if (shouldAppend(inp)) {
console.log("appending...");
const wrapper = document.createElement("toxicity-container");
inp.parentElement.insertBefore(wrapper, inp);
wrapper.appendChild(inp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment