mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 07:53:58 +00:00
1688 PO Automation Project
This commit is contained in:
@@ -164,11 +164,11 @@ export default {
|
||||
return;
|
||||
}
|
||||
if (typeof pdfjsLib === 'undefined') {
|
||||
await this.loadScript('/js/pdf.js');
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = '/js/pdf.worker.js';
|
||||
await this.loadScript(window.pdfJsUrl);
|
||||
pdfjsLib.GlobalWorkerOptions.workerSrc = window.pdfWorkerJsUrl;
|
||||
}
|
||||
if (typeof pdf_table_extractor === 'undefined') {
|
||||
await this.loadScript('/js/pdf-table-extractor.js');
|
||||
await this.loadScript(window.pdfTableExtractorJsUrl);
|
||||
}
|
||||
},
|
||||
loadScript(src) {
|
||||
|
||||
+3
@@ -7,6 +7,9 @@
|
||||
<!-- End Google Tag Manager -->
|
||||
<script>
|
||||
window.LARAVEL_VAPOR_ENABLED = @json(env('LARAVEL_VAPOR_ENABLED', false));
|
||||
window.pdfJsUrl = "{{ asset('js/pdf.js') }}";
|
||||
window.pdfWorkerJsUrl = "{{ asset('js/pdf.worker.js') }}";
|
||||
window.pdfTableExtractorJsUrl = "{{ asset('js/pdf-table-extractor.js') }}";
|
||||
</script>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
|
||||
<meta charset="utf-8"/>
|
||||
|
||||
Reference in New Issue
Block a user