connectiopn fix round 2 3
This commit is contained in:
@ -107,4 +107,13 @@
|
||||
for (const keysym of keys) client.sendKeyEvent(1, keysym);
|
||||
for (const keysym of keys.slice().reverse()) client.sendKeyEvent(0, keysym);
|
||||
});
|
||||
|
||||
document.getElementById("exit-btn").addEventListener("click", () => {
|
||||
try { client.disconnect(); } catch (_) { /* bereits getrennt */ }
|
||||
window.close();
|
||||
// Siehe terminal.js fuer die ausfuehrliche Begruendung: window.close()
|
||||
// schliesst den Tab nur unter bestimmten Voraussetzungen lautlos --
|
||||
// deshalb zusaetzlich immer ein Fallback zum Dashboard.
|
||||
window.setTimeout(() => { window.location.href = "/dashboard"; }, 300);
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user