mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-16 22:00:33 +00:00
clipboard: wildspace #1097
This commit is contained in:
parent
c72515a504
commit
e9ef535223
2 changed files with 2 additions and 2 deletions
|
@ -565,7 +565,7 @@ function initAnchorClipboard() {
|
|||
return;
|
||||
}
|
||||
|
||||
document.querySelectorAll(':has(h1) :is(h2[id], h3[id], h4[id] , h5[id], h6[id])').forEach(function (element) {
|
||||
document.querySelectorAll(':has(h1) :is(h2[id], h3[id], h4[id], h5[id], h6[id])').forEach(function (element) {
|
||||
var origin = document.location.origin == 'null' ? `${document.location.protocol}//${document.location.host}` : document.location.origin;
|
||||
var id = encodeURIComponent(element.id);
|
||||
var link = `${origin}${document.location.pathname}#${id}`;
|
||||
|
|
|
@ -1 +1 @@
|
|||
7.6.1+c6efbf1113e94ff36905d3a5319d84968996f808
|
||||
7.6.1+c72515a5047be372be90277e569a86bc2e13ea21
|
Loading…
Add table
Add a link
Reference in a new issue