Index: runtime/observatory/lib/src/app/page.dart |
diff --git a/runtime/observatory/lib/src/app/page.dart b/runtime/observatory/lib/src/app/page.dart |
index 9d624c1c2c52fd9508ac8c995b4694f2f54b232e..460be214761c38d6ba4de6237282058d19655fe7 100644 |
--- a/runtime/observatory/lib/src/app/page.dart |
+++ b/runtime/observatory/lib/src/app/page.dart |
@@ -389,15 +389,19 @@ class VMConnectPage extends Page { |
class IsolateReconnectPage extends Page { |
IsolateReconnectPage(app) : super(app); |
+ DivElement container = new DivElement(); |
+ |
void onInstall() { |
- if (element == null) { |
- element = new Element.tag('isolate-reconnect'); |
- } |
- assert(element != null); |
+ element = container; |
} |
void _visit(Uri uri) { |
app.vm.reload(); |
+ container.children = [ |
+ new IsolateReconnectElement(app.vm, app.events, app.notifications, |
+ uri.queryParameters['isolateId'], |
+ Uri.parse(uri.queryParameters['originalUri'])) |
+ ]; |
assert(element != null); |
assert(canVisit(uri)); |
} |