Merge pull request #459 from Doctor-von-Piglet/master

replaced location.origin
This commit is contained in:
Fredrick Brennan 2015-04-18 20:35:18 -04:00
commit 99be39433e

View File

@ -177,7 +177,7 @@ function highlightReply(id, event) {
post.className += ' highlighted';
if (history.pushState) {
history.pushState(null, null, window.document.location.origin + window.document.location.pathname + window.document.location.search + '#' + id);
history.pushState(null, null, window.document.location.protocol + "//" + window.document.location.host + window.document.location.pathname + window.document.location.search + '#' + id);
} else {
window.location.hash = id;
}