Skip to content

Commit

Permalink
Drop legacy IE11 developer preview support
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed May 12, 2020
1 parent 2ec0a9f commit 87b4add
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions src/emscripten/library_system.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
mergeInto(LibraryManager.library, {
is_ie_11_developer_preview: function() {
var ua = window.navigator.userAgent;
return ua.indexOf("Trident/7.0") >= 0 && ua.indexOf("rv:11.0") >= 0;
},

browser_info: function () {
var idstr = "";
if (typeof navigator !== "undefined") {
Expand Down
11 changes: 0 additions & 11 deletions tests/SystemInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,8 @@ bool IsSafariBrowser();
extern "C"
{
extern const char *browser_info(void);
extern bool is_ie_11_developer_preview(void);
}

inline bool IsIE11DeveloperPreview()
{
static int isIE11DeveloperPreview = -1;
if (isIE11DeveloperPreview == -1) // Only do this check once, and cache the result for performance.
isIE11DeveloperPreview = is_ie_11_developer_preview() ? 1 : 0;
return isIE11DeveloperPreview != 0;
}

inline std::string GetOSDisplayString() { return browser_info(); }

#else
inline bool IsIE11DeveloperPreview() { return false; }
#endif
1 change: 0 additions & 1 deletion tests/SystemInfoTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ UNIQUE_TEST(DetectBrowser)
LOGI("IsChromeBrowserOnWin32: %s", IsChromeBrowserOnWin32()?"true":"false");
LOGI("IsOperaBrowser: %s", IsOperaBrowser()?"true":"false");
LOGI("IsSafariBrowser: %s", IsSafariBrowser()?"true":"false");
LOGI("IsIE11DeveloperPreview: %s", IsIE11DeveloperPreview()?"true":"false");
}

#endif

0 comments on commit 87b4add

Please sign in to comment.