2016-08-03 13:15:04 +00:00
|
|
|
(function () {
|
2018-07-06 19:47:59 +00:00
|
|
|
var history = window.history;
|
|
|
|
var pushState = history.pushState;
|
|
|
|
history.pushState = function(state) {
|
|
|
|
setTimeout(function () {
|
2018-07-18 13:48:08 +00:00
|
|
|
bridgeSend({
|
|
|
|
type: 'history-state-changed',
|
|
|
|
navState: { url: location.href, title: document.title }
|
|
|
|
});
|
2018-07-06 19:47:59 +00:00
|
|
|
}, 100);
|
|
|
|
return pushState.apply(history, arguments);
|
|
|
|
};
|
2020-05-05 05:43:55 +00:00
|
|
|
})();
|