File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1142,7 +1142,11 @@ function loadCss(cssUrl) {
11421142( function ( ) {
11431143 let reset_button_timeout = null ;
11441144
1145- window . copy_path = but => {
1145+ const but = document . getElementById ( "copy-path" ) ;
1146+ if ( ! but ) {
1147+ return ;
1148+ }
1149+ but . onclick = ( ) => {
11461150 const parent = but . parentElement ;
11471151 const path = [ ] ;
11481152
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ <h1> {#- -#}
66 < a href ="{{component.path|safe}}index.html "> {{component.name}}</ a > ::< wbr >
77 {%- endfor -%}
88 < 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 "> {#- -#}
1010 < img src ="{{static_root_path|safe}}{{clipboard_svg}} " {# -#}
1111 width ="19 " height ="18 " {# -#}
1212 alt ="Copy item path "> {#- -#}
You can’t perform that action at this time.
0 commit comments