Merge pull request #3714 from FinnStutzenstein/pdfjs-distIE11Fix

Fixed IE11 Error in pdfjs-dist
This commit is contained in:
Emanuel Schütze 2018-04-24 11:33:16 +02:00 committed by GitHub
commit b8ee6d91f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,8 @@ gulp.task('js-libs', function () {
.pipe(sourcemaps.write())
.pipe(inject.prepend("/* set basepath of CKEditor */\n" +
"window.CKEDITOR_BASEPATH = '/static/ckeditor/';\n\n"))
.pipe(inject.prepend("/* Workaround for IE and pdfjs-dist#1.3.100 (see PR#3714) */\n" +
"PDFJS = {workerSrc: 'not used but set'};\n\n"))
.pipe(gulpif(argv.production, uglify()))
.pipe(gulp.dest(path.join(output_directory, 'js')));
});