From 2bc72f542a7e5a83d89af4a5a4b17d2ef042fd89 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Wed, 27 Dec 2017 12:24:40 +0200 Subject: [PATCH] Updated query selector to match the proper pre elements --- static-parts/index-start.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static-parts/index-start.html b/static-parts/index-start.html index a0060d67e..0ecf1810d 100644 --- a/static-parts/index-start.html +++ b/static-parts/index-start.html @@ -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";