Added listShortInstances for use in Call Roster window title

merge-requests/177/head
csharpen 2022-07-15 22:10:05 +00:00
rodzic 236ff1097d
commit 6924f9802d
1 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -3429,3 +3429,21 @@ function doubleCompile(award, firstLevel)
return singleCompile(award, firstLevel);
}
function listShortInstances()
{
let shortInstances = [];
if (window.opener.g_instancesIndex.length > 1)
{
let instances = window.opener.g_instances;
let keys = Object.keys(instances).sort();
for (let key in keys)
{
let inst = keys[key];
let sp = inst.split(" - ");
let shortInst = sp[sp.length - 1].substring(0, 18);
shortInstances.push(shortInst);
}
}
return shortInstances;
}