mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
-1…*.indexOf() to native .includes()
This commit is contained in:
parent
eb15c6e45f
commit
961fa305c9
8 changed files with 19 additions and 19 deletions
|
|
@ -49,17 +49,17 @@ export const sUserAgent =
|
|||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
export const bIE = -1 < sUserAgent.indexOf('msie');
|
||||
export const bIE = sUserAgent.includes('msie');
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
export const bChrome = -1 < sUserAgent.indexOf('chrome');
|
||||
export const bChrome = sUserAgent.includes('chrome');
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
export const bSafari = !bChrome && -1 < sUserAgent.indexOf('safari');
|
||||
export const bSafari = !bChrome && sUserAgent.includes('safari');
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue