Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const orgPushState = history.pushState;
- history.pushState = function() {
- console.log('pushState', arguments);
- orgPushState.apply(history, arguments)
- }.bind(this);
- const orgReplaceState = history.replaceState;
- history.replaceState = function() {
- console.log('replaceState', arguments);
- orgReplaceState.apply(history, arguments)
- }.bind(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement