Commit ce9b46c4 authored by Romain Loth's avatar Romain Loth

add case with no anchors in case html edit

for instance if explorer html will be modified by downstream app like comex to use another topbar
parent 4f9c734e
......@@ -158,7 +158,11 @@ function getHeatmapColors(nClasses) {
function writeBrand (brandString, brandLink) {
document.getElementById('twbrand').innerHTML = brandString
let elTitle = document.getElementById('twbrand')
if (elTitle) {
elTitle.innerHTML = brandString
}
let anchors = document.getElementsByClassName('twbrand-link')
for (var k in anchors) {
if (anchors[k] && anchors[k].href) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment