Kumi
932f8f98b1
This commit sets up webpack as the module bundler along with configurations for transforming ES6+ code using Babel and compiling SASS into CSS. It includes necessary dependencies such as `babel-loader`, `sass-loader`, `css-loader`, `style-loader`, and plugins like `mini-css-extract-plugin` to extract CSS into separate files. This setup facilitates the development of a modern web application by enabling the use of the latest JavaScript features and streamlined CSS pre-processing.
17 lines
308 B
JavaScript
17 lines
308 B
JavaScript
import "@ionic/core";
|
|
|
|
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;
|
|
});
|