Skip to content

Commit

Permalink
Use page location as indicator for page load (#5735) [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalpern committed Jan 27, 2020
1 parent 4568f4b commit ac22286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/layouts/_top_bar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
}

// Load notifications count as quickly as it's available.
// Not if we're on the notifications page itself
if (
document.getElementById('notifications-container') == null
window.location.pathname !== '/notifications'
) {
var xmlhttp;
if (window.XMLHttpRequest) {
Expand Down

0 comments on commit ac22286

Please sign in to comment.