PDF Viewer not working on secondary domain (Same site with multiple domains)

I have a similar issue, but it’s not related to the domain. The PDF viewer stopped working after upgrading to version 3.5