Skip to content

Commit 6fe19a8

Browse files
authored
fix: eslint-error (#32)
1 parent 9b64cbd commit 6fe19a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/js/browser.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ var browser = {
4040
};
4141

4242
if (window && window.navigator) {
43+
detectBrowser();
44+
}
45+
46+
/**
47+
* Detect the browser.
48+
* @private
49+
*/
50+
function detectBrowser() {
4351
var nav = window.navigator;
4452
var appName = nav.appName.replace(/\s/g, '_');
4553
var userAgent = nav.userAgent;

0 commit comments

Comments
 (0)