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:
parent
010845611d
commit
fd15b59de2
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue