Skip to content
Snippets Groups Projects
Commit 5fdb4d9a authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Catch error when dante button isn't found

parent abd438f2
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,7 @@ class System {
if (this.pdante != this.dante) {
let button = document.getElementById("toggle-button-dante_active_button");
if (button !== null) {
if (this.dante) {
button.toggle_button.setInactive();
console.log("Dante activated");
......@@ -139,6 +140,7 @@ class System {
main.classList.remove("dante");
}
}
}
this.pdante = this.dante;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment