Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Unified Diff: site/try/src/leap.dart

Issue 408783002: Enable Try Dart to run on IE11. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: removed dynamic, marked one test as Fail on IE11 Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: site/try/src/leap.dart
===================================================================
--- site/try/src/leap.dart (revision 39366)
+++ site/try/src/leap.dart (working copy)
@@ -31,6 +31,19 @@
import 'user_option.dart' show
UserOption;
+import 'settings.dart' show
+ alwaysRunInIframe,
+ communicateViaBlobs;
+
+bool isBrowserIE() {
+ return window.navigator.userAgent.contains(' Trident/7.0;');
+}
+
+initHiddenSettings() {
+ alwaysRunInIframe.setIfNotInitialized(isBrowserIE);
+ communicateViaBlobs.setIfNotInitialized(() => !isBrowserIE());
+}
+
int count = 0;
main() {
@@ -39,6 +52,8 @@
currentSource = EXAMPLE_HELLO;
}
+ initHiddenSettings();
+
buildUI();
ReceivePort port = new ReceivePort();
Isolate.spawnUri(

Powered by Google App Engine
This is Rietveld 408576698