-function ctdl_startup() {
- var request = new XMLHttpRequest();
- request.open("GET", "/ctdl/c/info", true);
- request.onreadystatechange = function() {
- if ((this.readyState === 4) && ((this.status / 100) == 2)) {
- ctdl_startup_2(JSON.parse(this.responseText));
+ctdl_startup = async() => {
+ response = await fetch("/ctdl/c/info");
+ serv_info = await(response.json());
+
+ if (response.ok) {
+ if (serv_info.serv_rev_level < 905) {
+ alert("Citadel server is too old, some functions may not work");