Skip to content

Commit

Permalink
Revert "[web] Freeze window.defaultRouteName (flutter#15565)"
Browse files Browse the repository at this point in the history
This reverts commit 943f3cd.
  • Loading branch information
NoamDev committed Feb 27, 2020
1 parent f303659 commit 0b2d48c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
8 changes: 1 addition & 7 deletions lib/web_ui/lib/src/engine/window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,8 @@ class EngineWindow extends ui.Window {
/// Simulates clicking the browser's back button.
Future<void> webOnlyBack() => _browserHistory.back();

/// Lazily initialized when the `defaultRouteName` getter is invoked.
///
/// The reason for the lazy initialization is to give enough time for the app to set [locationStrategy]
/// in `lib/src/ui/initialization.dart`.
String _defaultRouteName;

@override
String get defaultRouteName => _defaultRouteName ??= _browserHistory.currentPath;
String get defaultRouteName => _browserHistory.currentPath;

/// Change the strategy to use for handling browser history location.
/// Setting this member will automatically update [_browserHistory].
Expand Down
22 changes: 0 additions & 22 deletions lib/web_ui/test/window_test.dart

This file was deleted.

0 comments on commit 0b2d48c

Please sign in to comment.