| Index: samples/swarm/UIState.dart
|
| diff --git a/samples/swarm/UIState.dart b/samples/swarm/UIState.dart
|
| index 9026b776811955ca16f8f9bfc526df0888d19a50..dffb1c799e69bf6c7c7866b1e2f93003380e24e7 100644
|
| --- a/samples/swarm/UIState.dart
|
| +++ b/samples/swarm/UIState.dart
|
| @@ -35,7 +35,7 @@ abstract class UIState {
|
| // the views for this.
|
| window.history.replaceState(null, document.title, '#');
|
| } else if (state != '') {
|
| - loadFromHistory(json.parse(state));
|
| + loadFromHistory(JSON.decode(state));
|
| }
|
| firstEvent = false;
|
| });
|
| @@ -55,7 +55,7 @@ abstract class UIState {
|
| throw 'history tracking not started';
|
| }
|
|
|
| - String state = json.stringify(toHistory());
|
| + String state = JSON.encode(toHistory());
|
|
|
| // TODO(jmesserly): [state] should be an Object, and we should pass it to
|
| // the state parameter instead of as a #hash URL. Right now we're working
|
|
|