| 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;
|
| }
|
|
|
|
|