Index: dart/site/try/src/leap.dart |
diff --git a/dart/site/try/src/leap.dart b/dart/site/try/src/leap.dart |
index f9ef7c4c76f3be6836cfd9b3ba766040a2c28137..1504c6edd6bbdaa1430142d134d520350bcb45ed 100644 |
--- a/dart/site/try/src/leap.dart |
+++ b/dart/site/try/src/leap.dart |
@@ -16,7 +16,8 @@ import 'dart:isolate' show |
import 'compilation.dart' show |
compilerIsolate, |
- compilerPort; |
+ compilerPort, |
+ currentSource; |
import 'isolate_legacy.dart' show |
spawnDomFunction, |
@@ -50,8 +51,8 @@ checkHttpRequest(SendPort replyTo) { |
main() { |
UserOption.storage = window.localStorage; |
- if (window.localStorage['currentSource'] == null) { |
- window.localStorage['currentSource'] = EXAMPLE_HELLO; |
+ if (currentSource == null) { |
+ currentSource = EXAMPLE_HELLO; |
} |
buildUI(); |