mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 07:53:58 +00:00
Merge branch 'dillon/122-1688-po-automation-project' into vapor/development
This commit is contained in:
Vendored
-1
@@ -97,7 +97,6 @@ gulp.task('sourceJs', () => {
|
||||
|
||||
gulp.task('sourceJsKeepNames', () => {
|
||||
fancyLog('Compiling source JS Keep Original Names dependencies');
|
||||
|
||||
return gulp.src(pkg.globs.sourceJsKeepNames)
|
||||
.pipe(plugins.plumber({ errorHandler: onError }))
|
||||
.pipe(plugins.print())
|
||||
|
||||
@@ -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