You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
In our aplication all the library files gets bundled into one lilb,js where pdf.js and pdf.worker.js also part of bundle
whenever we give valid url to $scope.pdfUrl, it looks for lib.worker.js because of this line return pdfjsFilePath.replace(/.js$/i, '.worker.js');
getting 404 not found since it is not present
If i comment this line and return pdfjsFilePath alone it works
Is this the only way to handle or any other configuration available
The text was updated successfully, but these errors were encountered:
Hi
In our aplication all the library files gets bundled into one lilb,js where pdf.js and pdf.worker.js also part of bundle
whenever we give valid url to$scope.pdfUrl, it looks for lib.worker.js because of this line return pdfjsFilePath.replace(/.js$ /i, '.worker.js');
getting 404 not found since it is not present
If i comment this line and return pdfjsFilePath alone it works
Is this the only way to handle or any other configuration available
The text was updated successfully, but these errors were encountered: