Second banner test
parent
87e6b2258a
commit
eedbbc757c
|
@ -1,3 +1,7 @@
|
|||
window.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", window.location + "../versions.json");
|
||||
xhr.onload = function() {
|
||||
var versions = JSON.parse(this.responseText);
|
||||
|
||||
|
@ -5,8 +9,10 @@ xhr.onload = function() {
|
|||
return i.version === CURRENT_VERSION ||
|
||||
i.aliases.includes(CURRENT_VERSION);
|
||||
}).version;
|
||||
console.log(realVersion)
|
||||
console.log(CURRENT_VERSION)
|
||||
}
|
||||
|
||||
console.log("hi")
|
||||
console.log(version)
|
||||
console.log(CURRENT_VERSION)
|
||||
};
|
||||
xhr.send();
|
||||
});
|
||||
|
Loading…
Reference in New Issue