mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Use ES6 notation, and replace var
with let
, in web/pdf_viewer.component.js
and web/pdfjs.js
This commit is contained in:
parent
2b70e68eba
commit
ad0c1fb2c0
2 changed files with 37 additions and 36 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue