In my current situation, I have implemented a function in the first tab that displays a modal or component after 5 seconds:
ngOnInit() {
setTimeout(() => {
this.openDialog();
}, 5000);
}
openDialog() {
this.dialog.open(.....);
}
However, if I open a new (2nd) browser tab before the 5 seconds elapse, is there a way for me to return to the original tab where the modal is displayed?