Kumi
fd15b59de2
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.
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
import "@ionic/core";
|
|
|
|
const Bowser = require("bowser");
|
|
|
|
const browser = Bowser.getParser(window.navigator.userAgent).parsedResult
|
|
.browser.name;
|
|
|
|
const spans = document.querySelectorAll(".browser");
|
|
|
|
spans.forEach((span) => {
|
|
span.textContent = browser;
|
|
});
|
|
|
|
const box = document.querySelector(".error-box");
|
|
box.classList.remove("hidden"); |