- Full-featured monitoring dashboard for local web apps - Real-time status tracking with uptime percentages - Visual sparklines for status history - Add/Edit/Delete apps dynamically - Categories and color coding - Auto-refresh every 30 seconds - API endpoints for apps and status management
13 lines
233 B
JavaScript
13 lines
233 B
JavaScript
/**
|
|
* Removes a given node from the DOM.
|
|
*
|
|
* @param node the node to remove
|
|
*/
|
|
export default function remove(node) {
|
|
if (node && node.parentNode) {
|
|
node.parentNode.removeChild(node);
|
|
return node;
|
|
}
|
|
|
|
return null;
|
|
} |