Second banner test

pull/103/head
JulioV 2020-11-18 18:41:48 -05:00
parent 87e6b2258a
commit eedbbc757c
1 changed files with 17 additions and 11 deletions

View File

@ -1,12 +1,18 @@
xhr.onload = function() {
var versions = JSON.parse(this.responseText);
window.addEventListener("DOMContentLoaded", function() {
var realVersion = versions.find(function(i) {
return i.version === CURRENT_VERSION ||
i.aliases.includes(CURRENT_VERSION);
}).version;
console.log(realVersion)
console.log(CURRENT_VERSION)
}
var xhr = new XMLHttpRequest();
xhr.open("GET", window.location + "../versions.json");
xhr.onload = function() {
var versions = JSON.parse(this.responseText);
var realVersion = versions.find(function(i) {
return i.version === CURRENT_VERSION ||
i.aliases.includes(CURRENT_VERSION);
}).version;
console.log(version)
console.log(CURRENT_VERSION)
};
xhr.send();
});
console.log("hi")