Chromium Code Reviews| Index: site/try/src/leap.dart |
| =================================================================== |
| --- site/try/src/leap.dart (revision 38889) |
| +++ 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.value = isBrowserIE(); |
|
ahe
2014/08/19 09:22:30
Can we make it so that this is a default?
I'd lik
aam-me
2014/08/19 12:09:12
Done.
|
| + communicateViaBlobs.value = !isBrowserIE(); |
| +} |
| + |
| int count = 0; |
| main() { |
| @@ -39,6 +52,8 @@ |
| currentSource = EXAMPLE_HELLO; |
| } |
| + initHiddenSettings(); |
| + |
| buildUI(); |
| ReceivePort port = new ReceivePort(); |
| Isolate.spawnUri( |