Skip to content

Commit

Permalink
Merge pull request #2056 from WikiWatershed/cpc/no-login-modal
Browse files Browse the repository at this point in the history
Don't open login modal on page load of homepage
  • Loading branch information
caseycesari committed Jul 20, 2017
2 parents 9e504a1 + c7ba9fb commit eff4766
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/mmw/js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ App.on('start', function() {
});
Backbone.history.start({ pushState: true });

// Show login modal only if landing on home page
if (Backbone.history.getFragment() === '') {
this.getUserOrShowLoginIfNotItsiEmbed();
} else {
this.user.fetch();
}
this.user.fetch();
});

App.start();
Expand Down

0 comments on commit eff4766

Please sign in to comment.