From 9c4f9c0075b5b85ea02298097e9346122ea6f86d Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 13 Jan 2022 15:20:17 +0800 Subject: [PATCH] :bug: Fix: clipboardJS load error (#29) --- layouts/partials/assets.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 7885f17b..5ec21841 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -60,7 +60,7 @@ {{- /* clipboard.js */ -}} {{- if ne $code.copy false -}} {{- $source := $cdn.clipboardJS | default "lib/clipboard/clipboard.min.js" -}} - {{- dict "Source" $source "Fingerprint" $fingerprint "Async" true "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- $config = T "copyToClipboard" | dict "copyTitle" | dict "code" | merge $config -}} {{- end -}}