diff options
author | zzossig <zzossig@gmail.com> | 2020-12-11 19:19:44 +0300 |
---|---|---|
committer | zzossig <zzossig@gmail.com> | 2020-12-11 19:19:44 +0300 |
commit | 290800d19a793d00808910cfaa3d9ec5eeff39e5 (patch) | |
tree | 8801590a57dfbca8d470838e6e10213f68d285b0 | |
parent | dcd09019f6bcc74bac9d096123ac98e7801a0670 (diff) |
Support CJK header link
-rw-r--r-- | layouts/partials/script/single-script.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index 456f2cf..4a23c59 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -373,7 +373,7 @@ var newElemOuter = document.createElement('span'); newElemOuter.classList.add('anchor'); newElemOuter.classList.add('hide'); - newElemOuter.setAttribute('data-clipboard-text', link); + newElemOuter.setAttribute('data-clipboard-text', decodeURI(link)); newElemOuter.style.position = 'relative'; var newElemInner = document.createElement('span'); |