actually hide the banner

pull/339/head
Justin Cooper 4 months ago
parent 15aacd0681
commit ca87727249

@ -90,6 +90,7 @@ div.clear {
} }
.notSupported { .notSupported {
display: none;
padding: 1em; padding: 1em;
margin-top: 1em; margin-top: 1em;
margin-bottom: 1em; margin-bottom: 1em;

@ -51,6 +51,10 @@ document.addEventListener("DOMContentLoaded", () => {
window.addEventListener("error", function (event) { window.addEventListener("error", function (event) {
console.log("Got an uncaught error: ", event.error); console.log("Got an uncaught error: ", event.error);
}); });
if ("serial" in navigator) {
const notSupported = document.getElementById("notSupported");
notSupported.classList.add("hidden");
}
initBaudRate(); initBaudRate();
loadAllSettings(); loadAllSettings();

Loading…
Cancel
Save