13 lines
374 B
JavaScript
13 lines
374 B
JavaScript
import Debug from './Debug.js';
|
|
|
|
const BrowserDetect = {
|
|
firefox: process.env.BROWSER === 'firefox',
|
|
chrome: process.env.BROWSER === 'chrome',
|
|
edge: process.env.BROWSER === 'edge',
|
|
}
|
|
|
|
if (Debug.debug) {
|
|
console.log("Loading: BrowserDetect.js\n\nprocess.env.BROWSER:", process.env.BROWSER, "Exporting BrowserDetect:", BrowserDetect);
|
|
}
|
|
|
|
export default BrowserDetect; |