Skip to content
This repository was archived by the owner on Dec 21, 2022. It is now read-only.

Commit c9c1bb6

Browse files
committed
Little fixes
1 parent 5fe7aca commit c9c1bb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Utils {
100100
* @return {Boolean} True if the browser is Android Chrome
101101
*/
102102
static isAndroidChrome() {
103-
var agent = navigator.userAgent
103+
const agent = navigator.userAgent
104104
return !!(agent.match(/Android/) && agent.match(/Chrome/))
105105
}
106106

@@ -143,7 +143,7 @@ class Utils {
143143
}
144144

145145
_id = 1
146-
static generateRuntimeId = () => {
146+
static generateRuntimeId() {
147147
return this._id++
148148
}
149149

@@ -155,7 +155,7 @@ class Utils {
155155
* @method isSupportPassiveEvent
156156
* @return {Boolean} this browser support passive event or not
157157
*/
158-
static isSupportPassiveEvent = () => {
158+
static isSupportPassiveEvent() {
159159
if (typeof this._supportPassiveEvent === 'boolean') {
160160
return this._supportPassiveEvent
161161
}

0 commit comments

Comments
 (0)