Clear hashtag from address bar


JavaScript


function clearHashtags() {
	var href=window.location.href;
	if(href.indexOf('#post')) {
		var url=href.split('#post'); 
		history.pushState(null,null, url[0]);
	}
}

Written by fbrefere001

Posted by fbrefere001 on Saturday October 14, 2017