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

Unified Diff: runtime/bin/vmservice/client/lib/src/app/location_manager.dart

Issue 215213003: Rework the <field-view> page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
Index: runtime/bin/vmservice/client/lib/src/app/location_manager.dart
diff --git a/runtime/bin/vmservice/client/lib/src/app/location_manager.dart b/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
index 3071571227edb2cbd2b83461d0df91f75f00a803..b541bf3982e161239c84169dc52e38ed1da09c91 100644
--- a/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
+++ b/runtime/bin/vmservice/client/lib/src/app/location_manager.dart
@@ -18,8 +18,14 @@ class LocationManager extends Observable {
// Request the current anchor.
requestCurrentHash();
});
- // Set the default hash.
- window.location.hash = defaultHash;
+
+ if (window.location.hash == '') {
+ // Fresh start, load the vm page.
+ window.location.hash = defaultHash;
+ } else {
+ // The page is being reloaded.
+ requestCurrentHash();
+ }
}
/// Clear the current hash.

Powered by Google App Engine
This is Rietveld 408576698