Ver código fonte

Set the currentBrowser if Internet Explorer is detected

The setting of currentBrowser in RTCBrowserType was
accidentally removed.
tags/v0.0.2
Leonard Kim 8 anos atrás
pai
commit
a0157e617b
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      modules/RTC/RTCBrowserType.js

+ 5
- 0
modules/RTC/RTCBrowserType.js Ver arquivo

@@ -319,6 +319,11 @@ function detectIE() {
319 319
         version = parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
320 320
     }
321 321
 
322
+    if (version) {
323
+        currentBrowser = RTCBrowserType.RTC_BROWSER_IEXPLORER;
324
+        logger.info(`This appears to be IExplorer, ver: ${version}`);
325
+    }
326
+
322 327
     return version;
323 328
 }
324 329
 

Carregando…
Cancelar
Salvar