File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 8
8
"pdfjsLib": false,
9
9
"pdfjsViewer": false,
10
10
},
11
+
12
+ "rules": {
13
+ // ECMAScript 6
14
+ "no-var": "error",
15
+ },
11
16
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const MIN_SCALE = 0.25;
35
35
const MAX_SCALE = 10.0 ;
36
36
const DEFAULT_SCALE_VALUE = "auto" ;
37
37
38
- var PDFViewerApplication = {
38
+ const PDFViewerApplication = {
39
39
pdfLoadingTask : null ,
40
40
pdfDocument : null ,
41
41
pdfViewer : null ,
@@ -425,6 +425,8 @@ var PDFViewerApplication = {
425
425
} ,
426
426
} ;
427
427
428
+ window . PDFViewerApplication = PDFViewerApplication ;
429
+
428
430
document . addEventListener (
429
431
"DOMContentLoaded" ,
430
432
function ( ) {
Original file line number Diff line number Diff line change @@ -188,9 +188,9 @@ DOMElementSerializer.prototype = {
188
188
this . _loopIndex = 0 ;
189
189
/* falls through */
190
190
case 5 : // Serialize child nodes (only for non-tspan/style elements).
191
- var value ;
192
191
while ( true ) {
193
- value = this . _childSerializer && this . _childSerializer . getNext ( ) ;
192
+ const value =
193
+ this . _childSerializer && this . _childSerializer . getNext ( ) ;
194
194
if ( value !== null ) {
195
195
return value ;
196
196
}
You can’t perform that action at this time.
0 commit comments