Use ES6 notation, and replace var with let, in web/pdf_viewer.component.js and web/pdfjs.js

This commit is contained in:
Jonas Jenwald 2017-11-05 13:45:32 +01:00
parent 2b70e68eba
commit ad0c1fb2c0
2 changed files with 37 additions and 36 deletions

View file

@ -16,7 +16,7 @@
'use strict';
var pdfjsLib;
let pdfjsLib;
if (typeof window !== 'undefined' && window['pdfjs-dist/build/pdf']) {
pdfjsLib = window['pdfjs-dist/build/pdf'];
} else {