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

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

Issue 298273002: Share source code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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
« no previous file with comments | « dart/site/try/src/compilation.dart ('k') | dart/site/try/src/ui.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/leap.dart
diff --git a/dart/site/try/src/leap.dart b/dart/site/try/src/leap.dart
index 1504c6edd6bbdaa1430142d134d520350bcb45ed..8b5a8322a172a403b5a4363a74c93a21c16bc58f 100644
--- a/dart/site/try/src/leap.dart
+++ b/dart/site/try/src/leap.dart
@@ -51,7 +51,12 @@ checkHttpRequest(SendPort replyTo) {
main() {
UserOption.storage = window.localStorage;
- if (currentSource == null) {
+ Map<String, String> parameters =
+ Uri.parse('${window.location}').queryParameters;
+ String sourceParameter = parameters['source'];
+ if (sourceParameter != null) {
+ currentSource = sourceParameter;
+ } else if (currentSource == null) {
currentSource = EXAMPLE_HELLO;
}
« no previous file with comments | « dart/site/try/src/compilation.dart ('k') | dart/site/try/src/ui.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698