Hello,
I'm new to this topic and wanted to add a logo to the header of a dashboard. I used the template 'Node-red-dashboard logo in header' for this. The problem with this node is that every time you switch from a subpage to the page that uses the node, it adds another logo to the title. I thought that I could simply set a boolean switch to true after the first load, but unfortunately this didn't work. Does anyone have an idea how I could fix this?
Link to the template: Node-red-dashboard logo in header (flow) - Node-RED
The error is here:
function addToToolbar() {
var toolbar = $('.md-toolbar-tools');
if(!toolbar.length) return;
toolbar.append(div1);
}
addToToolbar();