|
@@ -124,7 +124,6 @@ export class Utils
|
124
|
124
|
// compatible with Safari. navigator.platform is deprecated, but
|
125
|
125
|
// predictable.
|
126
|
126
|
|
127
|
|
- //if(/(iOS|iPhone|iPad|iPod)/i.test(Utils.platformString()))
|
128
|
127
|
if(/(iOS|iPhone|iPad|iPod)/i.test(navigator.platform))
|
129
|
128
|
return true;
|
130
|
129
|
|
|
@@ -140,15 +139,17 @@ export class Utils
|
140
|
139
|
*/
|
141
|
140
|
static isWebKit(): boolean
|
142
|
141
|
{
|
143
|
|
- // note: navigator.vendor is deprecated.
|
|
142
|
+ // note: navigator.vendor is deprecated
|
144
|
143
|
if(/Apple/.test(navigator.vendor))
|
145
|
144
|
return true;
|
146
|
145
|
|
147
|
146
|
// Can a non WebKit-based browser pass this test?
|
148
|
147
|
// Test masked GL_RENDERER == "Apple GPU" (valid since Feb 2020)
|
149
|
148
|
// https://bugs.webkit.org/show_bug.cgi?id=207608
|
150
|
|
- /*if(Speedy.Platform.renderer == 'Apple GPU' && Speedy.Platform.vendor == 'Apple Inc.')
|
151
|
|
- return true;*/
|
|
149
|
+ /*
|
|
150
|
+ if(Speedy.Platform.renderer == 'Apple GPU' && Speedy.Platform.vendor == 'Apple Inc.')
|
|
151
|
+ return true;
|
|
152
|
+ */
|
152
|
153
|
|
153
|
154
|
// Desktop and Mobile Safari, Epiphany on Linux
|
154
|
155
|
if(/AppleWebKit\/.* Version\//.test(navigator.userAgent))
|