dev-utils: fix busy refresh loop
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -227,7 +227,11 @@ class DevAppBuilder {
|
||||
|
||||
const DevApp = hot(hotModule)(this.build());
|
||||
|
||||
if (window.location.pathname === '/' && this.defaultPage) {
|
||||
if (
|
||||
window.location.pathname === '/' &&
|
||||
this.defaultPage &&
|
||||
this.defaultPage !== '/'
|
||||
) {
|
||||
window.location.pathname = this.defaultPage;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user