Skip to content
Permalink
Browse files
Trying to fix default url
  • Loading branch information
effrafax committed Mar 14, 2021
1 parent 888a90b commit e4fe4bcf90f8ba3c237dc9b5e7f6bac2473c1330
Showing 1 changed file with 1 addition and 1 deletion.
@@ -38,7 +38,7 @@
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "../swagger.json";
url = window.location.pathname.split('/').slice(0,-1).join("/")+"/swagger.json";
}

hljs.configure({

0 comments on commit e4fe4bc

Please sign in to comment.