fix everything breaking

This commit is contained in:
elijahr2411 2023-02-10 09:07:09 -05:00
parent 262d6fe733
commit 0e8cebd3bb

View file

@ -709,9 +709,9 @@ function addUserDropdownItem(ul, text, func) {
async function openVM(url, node) { async function openVM(url, node) {
if (connected) return; if (connected) return;
connected = true; connected = true;
var vm = vms.find(v => v.url === url); var _vm = vms.find(v => v.url === url);
var token = null; var token = null;
if (vm.captcha !== false) { if (_vm.captcha !== false) {
token = await doCaptcha(vm.captcha); token = await doCaptcha(vm.captcha);
} }
window.location.href = "#" + node; window.location.href = "#" + node;