浏览代码

Change comments

customisations
alemart 1年前
父节点
当前提交
4de91fb23e
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5
    4
      src/utils/utils.ts

+ 5
- 4
src/utils/utils.ts 查看文件

@@ -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))

正在加载...
取消
保存