File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/components/Views/BrowserTab Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 } , ( ) => {
You can’t perform that action at this time.
0 commit comments