add localstorage usernames
This commit is contained in:
parent
a23f0e8886
commit
b60bdd9b65
|
|
@ -346,7 +346,8 @@ function openVM(vm : VM) {
|
||||||
await new Promise<void>(res => VM!.on('open', () => res()));
|
await new Promise<void>(res => VM!.on('open', () => res()));
|
||||||
// Connect to node
|
// Connect to node
|
||||||
chatMessage("", `<b>${vm.id}</b><hr>`);
|
chatMessage("", `<b>${vm.id}</b><hr>`);
|
||||||
var connected = await VM.connect(vm.id);
|
var username = localStorage.getItem("username");
|
||||||
|
var connected = await VM.connect(vm.id, username);
|
||||||
elements.adminInputVMID.value = vm.id;
|
elements.adminInputVMID.value = vm.id;
|
||||||
w.VMName = vm.id;
|
w.VMName = vm.id;
|
||||||
if (!connected) {
|
if (!connected) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user