expose VM name
This commit is contained in:
parent
48391c0723
commit
3a377a02a5
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue