Skip to content

Commit

Permalink
copy_path -> window.copy_path + add semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster0 authored Apr 30, 2021
1 parent c4fe7c4 commit bea99a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ function hideThemeButtonState() {
(function () {
var reset_button_timeout = null;

function copy_path(but) {
window.copy_path = function(but) {
var parent = but.parentElement;
var path = [];

Expand Down Expand Up @@ -1527,5 +1527,5 @@ function hideThemeButtonState() {
}

reset_button_timeout = window.setTimeout(reset_button, 1000);
}
};
}());

0 comments on commit bea99a5

Please sign in to comment.