feat: display browser name on UI elements

Removed console logs for browser detection and updated the UI to
dynamically display the detected browser name on specified elements.
This change enhances user interface clarity by directly showing
information relevant to the user's current browser, improving the
overall experience without cluttering the console with unnecessary data.
This commit is contained in:
Kumi 2024-03-28 09:22:05 +01:00
parent 010845611d
commit fd15b59de2
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -5,12 +5,8 @@ const Bowser = require("bowser");
const browser = Bowser.getParser(window.navigator.userAgent).parsedResult
.browser.name;
console.log(browser);
const spans = document.querySelectorAll(".browser");
console.log(spans);
spans.forEach((span) => {
span.textContent = browser;
});