mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
a20facd895
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
13 lines
402 B
JavaScript
13 lines
402 B
JavaScript
(function () {
|
|
var history = window.history;
|
|
var pushState = history.pushState;
|
|
history.pushState = function(state) {
|
|
setTimeout(function () {
|
|
bridgeSend({
|
|
type: 'history-state-changed',
|
|
navState: { url: location.href, title: document.title }
|
|
});
|
|
}, 100);
|
|
return pushState.apply(history, arguments);
|
|
};
|
|
}()); |