mirror of
https://github.com/responsively-org/responsively-app
synced 2024-11-10 14:54:12 +00:00
Syncing url on navigation
This commit is contained in:
parent
1f418cfb4b
commit
a8624c1f87
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@ class WebView extends Component {
|
|||
this.webviewRef.current.addEventListener('dom-ready', () => {
|
||||
this.initEventTriggers(this.webviewRef.current);
|
||||
});
|
||||
|
||||
this.webviewRef.current.addEventListener('will-navigate', ({url}) => {
|
||||
console.log('Navigating to ', url);
|
||||
this.props.onAddressChange(url);
|
||||
});
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState) {
|
||||
|
|
Loading…
Reference in a new issue