Fix old versions banner on nested pages

pull/108/head v0.2.6
JulioV 2020-12-20 17:03:11 -05:00
parent d352b2c607
commit 67e0caa2fe
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
# Change Log # Change Log
## v0.2.6
- Fix old versions banner on nested pages
## v0.2.5 ## v0.2.5
- Fix docs deploy typo - Fix docs deploy typo
## v0.2.4 ## v0.2.4

View File

@ -1,6 +1,6 @@
window.addEventListener("DOMContentLoaded", function() { window.addEventListener("DOMContentLoaded", function() {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open("GET", window.location + "../versions.json"); xhr.open("GET", window.location.origin + "/versions.json");
xhr.onload = function() { xhr.onload = function() {
var versions = JSON.parse(this.responseText); var versions = JSON.parse(this.responseText);
latest_version = "" latest_version = ""