From ca877272490e28cb78c7af75dcc2d2da429c086f Mon Sep 17 00:00:00 2001 From: Justin Cooper Date: Fri, 22 May 2026 14:09:56 -0500 Subject: [PATCH] actually hide the banner --- css/style.css | 1 + js/script.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/css/style.css b/css/style.css index 170cc2a..45ad6eb 100644 --- a/css/style.css +++ b/css/style.css @@ -90,6 +90,7 @@ div.clear { } .notSupported { + display: none; padding: 1em; margin-top: 1em; margin-bottom: 1em; diff --git a/js/script.js b/js/script.js index 25efdc9..1881a7d 100644 --- a/js/script.js +++ b/js/script.js @@ -51,6 +51,10 @@ document.addEventListener("DOMContentLoaded", () => { window.addEventListener("error", function (event) { console.log("Got an uncaught error: ", event.error); }); + if ("serial" in navigator) { + const notSupported = document.getElementById("notSupported"); + notSupported.classList.add("hidden"); + } initBaudRate(); loadAllSettings();