Skip to content
Snippets Groups Projects
Commit 2c196499 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Fix imports for pdfjs-dist path changes

The es5 build is now called legacy
parent 3ab51bcf
No related branches found
No related tags found
1 merge request!38Update dependency pdfjs-dist to v2.8.335
Pipeline #45424 passed
......@@ -192,7 +192,7 @@ Dependencies:
{src: 'assets/silent-check-sso.html', dest:'dist'},
{src: 'assets/dbp-signature-maintenance.html', dest:'dist'},
{
src: await getPackagePath('pdfjs-dist', 'es5/build/pdf.worker.js'),
src: await getPackagePath('pdfjs-dist', 'legacy/build/pdf.worker.js'),
dest: 'dist/' + await getDistPath(pkg.name, 'pdfjs'),
// enable signatures in pdf preview
transform: (contents) => replaceAll(contents.toString(), '"Sig"', '"Sig-patched-show-anyway"')
......
......@@ -7,7 +7,7 @@ import DBPLitElement from '@dbp-toolkit/common/dbp-lit-element';
import {MiniSpinner, Icon} from '@dbp-toolkit/common';
import * as commonUtils from "@dbp-toolkit/common/utils";
import * as commonStyles from '@dbp-toolkit/common/styles';
import pdfjs from 'pdfjs-dist/es5/build/pdf.js';
import pdfjs from 'pdfjs-dist/legacy/build/pdf.js';
import {name as pkgName} from './../package.json';
import {readBinaryFileContent} from './utils.js';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment