From 3a377a02a548b59fd06fe51bd63ce4f06ff0160d Mon Sep 17 00:00:00 2001 From: Elijahr2411 Date: Thu, 23 Feb 2023 16:39:49 -0500 Subject: [PATCH] expose VM name --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 63cdc88..288eac8 100644 --- a/src/index.js +++ b/src/index.js @@ -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;