mirror of
https://github.com/krishpranav/remote-desktop.git
synced 2025-09-26 20:21:10 +08:00
app.js[errorNodes]
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user