Typo fix: clipboard not clipdord

This commit is contained in:
TEC 2021-01-08 22:03:38 +08:00
parent 3688bb0f53
commit f2092071ba
Signed by: tec
GPG Key ID: 779591AFDB81F06C
3 changed files with 3 additions and 3 deletions

View File

@ -6033,7 +6033,7 @@ to copy the content of the block.
"<details id='%s' class='code'%s><summary%s>%s</summary>
<div class='gutter'>
<a href='#%s'>#</a>
<button title='Copy to clipboard' onclick='copyPreToClipdord(this)'>⎘</button>\
<button title='Copy to clipboard' onclick='copyPreToClipbord(this)'>⎘</button>\
</div>
%s
</details>"

View File

@ -1,4 +1,4 @@
function copyPreToClipdord(btn) {
function copyPreToClipbord(btn) {
const pre = btn.parentElement.parentElement.getElementsByTagName("PRE")[0];
const range = document.createRange();
range.selectNodeContents(pre);

View File

@ -1,4 +1,4 @@
function copyPreToClipdord(btn) {
function copyPreToClipbord(btn) {
const pre = btn.parentElement.parentElement.getElementsByTagName("PRE")[0];
const range = document.createRange();
range.selectNodeContents(pre);