From b18efb6d067d98961b1c72d914dbbb3f03c4bd75 Mon Sep 17 00:00:00 2001 From: Geoffrey Garrett Date: Sun, 3 Jul 2022 20:29:05 +0200 Subject: [PATCH] feat(clipboard): refactored for new DOM listener in MPA --- layouts/partials/head.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7c662486d..7dfbd50ca 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -130,19 +130,11 @@ const init = (doc = document) => { // NOTE: everything within this callback will be executed for initial page navigation. This is a good place to put JavaScript that only replaces DOM nodes. {{if $.Site.Data.config.enableCodeBlockCopy -}} - {{if $.Site.Data.config.enableSPA -}} addCopyButtons(); - {{ else }} - window.addEventListener("DOMContentLoaded", addCopyButtons); - {{ end }} {{ end }} {{if $.Site.Data.config.enableCodeBlockTitle -}} - {{if $.Site.Data.config.enableSPA -}} addTitleToCodeBlocks(); - {{ else }} - window.addEventListener("DOMContentLoaded", addTitleToCodeBlocks); - {{- end -}} {{- end -}} {{if $.Site.Data.config.enableLatex}} renderMathInElement(doc.body, {