| Index: lib/compiler/implementation/emitter.dart
|
| diff --git a/lib/compiler/implementation/emitter.dart b/lib/compiler/implementation/emitter.dart
|
| index bfb5d771015487ca79d9438d287c0ba25477058c..04072dfa87d7c2564b98b73d5dd1f419ad8f38ce 100644
|
| --- a/lib/compiler/implementation/emitter.dart
|
| +++ b/lib/compiler/implementation/emitter.dart
|
| @@ -988,7 +988,7 @@ $mainEnsureGetter
|
| }
|
| buffer.add("""
|
| if (typeof window != 'undefined' && typeof document != 'undefined' &&
|
| - window.addEventListener && document.readyState == 'loading') {
|
| + window.addEventListener && document.readyState != 'complete') {
|
| window.addEventListener('DOMContentLoaded', function(e) {
|
| ${mainCall};
|
| });
|
|
|