Print functionality not working in safari browser
I am unable to run the print functionality in safari browser getting error as, TypeError: null is not an object (evaluating 'printwWindow.opener = null') Can someone please help me with issue. Is there any solution available other than using document.execCommand('print', false, null) as this is been depericated and this is the only available solution found on internet. Is there any document available where it is declared as a known error, and coming from safari browser itself. This issue is not coming for any other browser only for safari.
MacBook Pro (2021)