mirror of
https://github.com/krishpranav/remote-desktop.git
synced 2025-09-27 04:26:18 +08:00
12 lines
308 B
JavaScript
12 lines
308 B
JavaScript
function showError(error) {
|
|
const errorNode = document.querySelector('#error');
|
|
if (errorNode.firstChild) {
|
|
errorNode.remoteChild(errorNode.firstChild);
|
|
}
|
|
|
|
errorNode.appendChild(document.createTextNode(error.message || error));
|
|
}
|
|
|
|
function loadSession() {
|
|
// fetch functionality
|
|
} |