We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have modified the firePopState method by adding a Map, which keeps the URL and state of object in case of IE/Edge.
function firePopState(currentUrl) { var o = document.createEvent ? document.createEvent('Event') : document.createEventObject(); var currentUrl = currentUrl; var NextUrl = windowLocation.href; if (o.initEvent) { o.initEvent('popstate', false, false); } else { o.type = 'popstate'; } if (historyMap[NextUrl]) { o.state = historyMap[NextUrl]; delete historyMap[NextUrl]; historyObject.replaceState(null, "", NextUrl); } else { historyMap[currentUrl] = historyObject.state; } // o.state = historyObject.state; // send a newly created events to be processed dispatchEvent(o); }
Please suggest.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have modified the firePopState method by adding a Map, which keeps the URL and state of object in case of IE/Edge.
Please suggest.
The text was updated successfully, but these errors were encountered: