mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-08 00:27:58 +00:00
Prevent copying code line numbers on Safari
This commit is contained in:
parent
1b16b152df
commit
4001ef7cba
@ -35,7 +35,8 @@ $(function() {
|
|||||||
// Initial the clipboard.js object
|
// Initial the clipboard.js object
|
||||||
const clipboard = new ClipboardJS(btnSelector, {
|
const clipboard = new ClipboardJS(btnSelector, {
|
||||||
target(trigger) {
|
target(trigger) {
|
||||||
return trigger.parentNode.nextElementSibling;
|
let codeBlock = trigger.parentNode.nextElementSibling;
|
||||||
|
return codeBlock.querySelector('code .rouge-code');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
2
assets/js/dist/page.min.js
vendored
2
assets/js/dist/page.min.js
vendored
File diff suppressed because one or more lines are too long
2
assets/js/dist/post.min.js
vendored
2
assets/js/dist/post.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user