Updated query selector to match the proper pre elements

This commit is contained in:
Angelos Chalaris
2017-12-27 12:24:40 +02:00
committed by Agamemnon Zorbas
parent 361197e306
commit 2bc72f542a

View File

@ -33,7 +33,7 @@
})
}
function clipboard() {
const snippets = document.querySelectorAll("pre");
const snippets = document.querySelectorAll(":not(pre) + pre");
snippets.forEach(element => {
const button = document.createElement("button");
button.innerHTML = "Copy to clipboard";