mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
check replaceState
This commit is contained in:
@@ -1024,7 +1024,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
||||
} else {
|
||||
localStorage.setItem("topic:" + templates.get('topic_id') + ":bookmark", el.attr('data-pid'));
|
||||
|
||||
if(history.pushState) {
|
||||
if(history.replaceState) {
|
||||
history.replaceState(null, window.location.protocol + '//' + window.location.host + window.location.pathname, '#' + el.attr('data-pid'));
|
||||
} else {
|
||||
location.hash = '#' + el.attr('data-pid');
|
||||
|
||||
Reference in New Issue
Block a user