Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. const orgPushState = history.pushState;
  2. history.pushState = function() {
  3. console.log('pushState', arguments);
  4. orgPushState.apply(history, arguments)
  5. }.bind(this);
  6.  
  7. const orgReplaceState = history.replaceState;
  8. history.replaceState = function() {
  9. console.log('replaceState', arguments);
  10. orgReplaceState.apply(history, arguments)
  11. }.bind(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement