default.js: first title in tab header

This commit is contained in:
Milan
2022-10-23 21:46:34 +02:00
parent 9d33fe5bdf
commit 7c3125f018

View File

@@ -433,6 +433,11 @@ $(document).ready(
});
}
initLabels();
let title = '';
if (title=='') title = $('.panel-header').first().text();
if (title=='') title = $('h2').first().text();
document.title = title
}
);