We have angular microapp sitting inside big parent app.
I am using window.print() to print the page.
But sometimes there are some images/scripts from parent app related to analytics(Nothing related to page operation and doesn't affect page operation any way) which doesn't load properly. We have no control over the parent app code and we cannot modify/correct it. At this point I am able to use all the function of my microapp except window.print() It doesn't work.
It only works when I give window.stop() in the console.
I didn't found any reference in my research which points out that window.print() will not work(even the popup window doesn't come up) and waits until the faulty image/script is timed out after like 5-6 minutes. Please help.
public PrintForm(): void{
window.print();
}