File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ export const getNavigatorInstance = () => {
3030export const isIOS13Check = type => {
3131 const nav = getNavigatorInstance ( ) ;
3232 return (
33- nav && ( nav . platform . includes ( type ) || ( nav . platform === 'MacIntel' && nav . maxTouchPoints > 1 && ! window . MSStream ) )
33+ nav && ( nav . platform . indexOf ( type ) !== - 1 || ( nav . platform === 'MacIntel' && nav . maxTouchPoints > 1 && ! window . MSStream ) )
3434 ) ;
3535} ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const isElectronType = () => {
3434 const nav = getNavigatorInstance ( ) ;
3535 const ua = nav && nav . userAgent . toLowerCase ( ) ;
3636
37- return typeof ua === 'string' ? ua . includes ( 'electron' ) : false ;
37+ return typeof ua === 'string' ? / e l e c t r o n / . test ( ua ) : false ;
3838} ;
3939
4040const getIOS13 = ( ) => {
You can’t perform that action at this time.
0 commit comments