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();