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