소스 검색

Remove Utils.platformString()

customisations
alemart 3 달 전
부모
커밋
cf6fd1b504
2개의 변경된 파일1개의 추가작업 그리고 14개의 파일을 삭제
  1. 1
    1
      src/core/session.ts
  2. 0
    13
      src/utils/utils.ts

+ 1
- 1
src/core/session.ts 파일 보기

@@ -203,7 +203,7 @@ export class Session extends AREventTarget<SessionEvent>
203 203
         //alert(Utils.deviceInfo()); // debug
204 204
 
205 205
         // If Safari / iOS, require version 15.2 or later
206
-        if(/(Mac|iOS|iPhone|iPad|iPod)/i.test(Utils.platformString())) {
206
+        if(/(Mac|iOS|iPhone|iPad|iPod)/i.test(navigator.platform)) {
207 207
 
208 208
             /*
209 209
 

+ 0
- 13
src/utils/utils.ts 파일 보기

@@ -147,19 +147,6 @@ export class Utils
147 147
     }
148 148
 
149 149
     /**
150
-     * Returns a string containing platform brand information
151
-     * @returns platform brand information
152
-     */
153
-    static platformString(): string
154
-    {
155
-        return ((navigator: any): string =>
156
-            typeof navigator.userAgentData === 'object' ? // prefer the NavigatorUAData interface
157
-            navigator.userAgentData.platform : // use only low entropy data
158
-            navigator.platform // navigator.platform is deprecated
159
-        )(navigator);
160
-    }
161
-
162
-    /**
163 150
      * Checks if we're on iOS
164 151
      * @returns true if we're on iOS
165 152
      */

Loading…
취소
저장