Commit afe52e92 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Make tabbar code a bit more fool-proof

parent ddea25bf
......@@ -162,6 +162,10 @@ document.addEventListener("DOMContentLoaded", function () {
var tablink = button.dataset.tabLink
var tabtarget = document.querySelector("[data-tab-id=" + tablink + "]");
if (!tabtarget) {
console.warn("Tab target", tablink, "does not exist!");
return;
}
button.addEventListener("click", function (event) {
tabClicked(tabbar, button);
......
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