Usuń hash z JavaScript URL

function removeHash () { 
    history.pushState("", document.title, window.location.pathname
                                                       + window.location.search);
}
Homemadesteam58