expose VM name

This commit is contained in:
Elijahr2411 2023-02-23 16:39:49 -05:00
parent 48391c0723
commit 3a377a02a5

View file

@ -717,6 +717,7 @@ async function openVM(url, node) {
token = await doCaptcha(vm.captcha);
}
window.location.href = "#" + node;
window.VMName = node;
vm = new CollabVMClient(url, true);
await vm.connect(token);
await vm.connectToVM(node);
@ -848,3 +849,4 @@ window.getPerms = () => perms;
window.getRank = () => rank;
window.GetAdmin = () => vm.admin;
window.cvmEvents = createNanoEvents();
window.VMName = null;