File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1142,7 +1142,11 @@ function loadCss(cssUrl) {
1142
1142
( function ( ) {
1143
1143
let reset_button_timeout = null ;
1144
1144
1145
- window . copy_path = but => {
1145
+ const but = document . getElementById ( "copy-path" ) ;
1146
+ if ( ! but ) {
1147
+ return ;
1148
+ }
1149
+ but . onclick = ( ) => {
1146
1150
const parent = but . parentElement ;
1147
1151
const path = [ ] ;
1148
1152
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ <h1> {#- -#}
6
6
< a href ="{{component.path|safe}}index.html "> {{component.name}}</ a > ::< wbr >
7
7
{%- endfor -%}
8
8
< a class ="{{item_type}} " href ="# "> {{name}}</ a > {#- -#}
9
- < button id ="copy-path " onclick =" copy_path(this) " title ="Copy item path to clipboard "> {#- -#}
9
+ < button id ="copy-path " title ="Copy item path to clipboard "> {#- -#}
10
10
< img src ="{{static_root_path|safe}}{{clipboard_svg}} " {# -#}
11
11
width ="19 " height ="18 " {# -#}
12
12
alt ="Copy item path "> {#- -#}
You can’t perform that action at this time.
0 commit comments