Skip to content

Commit 028523b

Browse files
author
Bruno Barbieri
authored
fix (#949)
1 parent db002fa commit 028523b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/components/Views/BrowserTab/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,11 @@ export class BrowserTab extends PureComponent {
974974
this.toggleOptionsIfNeeded();
975975
const lastUrlBeforeHome = this.state.inputValue;
976976
await this.go(HOMEPAGE_URL);
977-
this.reload(true);
977+
if (lastUrlBeforeHome === HOMEPAGE_URL) {
978+
this.reload();
979+
} else {
980+
this.reload(true);
981+
}
978982
Analytics.trackEvent(ANALYTICS_EVENT_OPTS.DAPP_HOME);
979983
setTimeout(() => {
980984
this.lastUrlBeforeHome = lastUrlBeforeHome;
@@ -1000,12 +1004,12 @@ export class BrowserTab extends PureComponent {
10001004
};
10011005

10021006
reload = (force = false) => {
1003-
this.isReloading = true;
10041007
this.toggleOptionsIfNeeded();
10051008
if (!force) {
10061009
const { current } = this.webview;
10071010
current && current.reload();
10081011
} else {
1012+
this.isReloading = true;
10091013
const url2Reload = this.state.inputValue;
10101014
// Force unmount the webview to avoid caching problems
10111015
this.setState({ forceReload: true }, () => {

0 commit comments

Comments
 (0)