This commit is contained in:
McShelby 2023-02-20 12:55:42 +00:00
commit 01681bf7e4
359 changed files with 7879 additions and 7879 deletions

View file

@ -305,7 +305,7 @@ function initSwagger( update, attrs ){
function initAnchorClipboard(){
document.querySelectorAll( 'h1~h2,h1~h3,h1~h4,h1~h5,h1~h6').forEach( function( element ){
var url = encodeURI(document.location.origin + document.location.pathname);
var url = encodeURI( (document.location.origin == "null" ? (document.location.protocol + "//" + document.location.host) : document.location.origin )+ document.location.pathname);
var link = url + "#" + element.id;
var new_element = document.createElement( 'span' );
new_element.classList.add( 'anchor' );