Просмотр исходного кода

Change comments

customisations
alemart 1 год назад
Родитель
Сommit
4de91fb23e
1 измененных файлов: 5 добавлений и 4 удалений
  1. 5
    4
      src/utils/utils.ts

+ 5
- 4
src/utils/utils.ts Просмотреть файл

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

Загрузка…
Отмена
Сохранить