Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Fixes #204
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Jan 7, 2014
1 parent 2825410 commit facfb02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ function ajaxifySite() {
$(document).ready(function() {
initPage();

// Insure add current page to history so back button has an URL for popstate.
history.pushState({url: document.location.href}, document.title,
document.location.href);

document.querySelector('[data-twitter-follow]').addEventListener('click', function(e) {
e.preventDefault();
var target = e.target.localName != 'a' ? e.target.parentElement : e.target;
Expand Down

0 comments on commit facfb02

Please sign in to comment.