Created
          August 27, 2014 04:28 
        
      - 
      
 - 
        
Save aullman/084e1508f957cfa4e868 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
Adam Ullman created this gist
Aug 27, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ // Detect whether this browser is IE var isNotIE = function isIE () { var userAgent = window.navigator.userAgent.toLowerCase(), appName = window.navigator.appName; return !( appName === 'Microsoft Internet Explorer' || // IE <= 10 (appName === 'Netscape' && userAgent.indexOf('trident') > -1) ); // IE >= 11 }; // If the browser is not IE, and it meets the minimum system requirements for the OpenTok platform, // then create your app if (isNotIE() && OT.checkSystemRequirements()) { var session = OT.initSession('your apiKey', 'your sessionId'); // ... continue with your OpenTok application }