Skip to content

Instantly share code, notes, and snippets.

View mrTimofey's full-sized avatar

Timofey mrTimofey

View GitHub Profile
@mrTimofey
mrTimofey / replaceHash.js
Created September 23, 2016 08:36
Change hash without affecting history
let hash = window.location.hash.replace('#', '');
window.history.replaceState('', '', '#' + hash);