Updated query selector to match the proper pre elements
This commit is contained in:
committed by
Agamemnon Zorbas
parent
361197e306
commit
2bc72f542a
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user