File tree 2 files changed +2
-17
lines changed 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -445,10 +445,8 @@ function checkChromePreferencesFile(chromePrefsPath, webPrefs) {
445
445
446
446
function tweakWebpackOutput ( jsName ) {
447
447
const replacer = [
448
- " __webpack_exports__ = {};" ,
449
- ",__webpack_exports__={};" ,
450
- " __webpack_exports__ = await __webpack_exports__;" ,
451
- "\\(__webpack_exports__=await __webpack_exports__\\)" ,
448
+ " __webpack_exports__ = {};" , // Normal builds.
449
+ ",__webpack_exports__={};" , // Minified builds.
452
450
] ;
453
451
const regex = new RegExp ( `(${ replacer . join ( "|" ) } )` , "gm" ) ;
454
452
@@ -458,10 +456,6 @@ function tweakWebpackOutput(jsName) {
458
456
return ` __webpack_exports__ = globalThis.${ jsName } = {};` ;
459
457
case ",__webpack_exports__={};" :
460
458
return `,__webpack_exports__=globalThis.${ jsName } ={};` ;
461
- case " __webpack_exports__ = await __webpack_exports__;" :
462
- return ` __webpack_exports__ = globalThis.${ jsName } = await (globalThis.${ jsName } Promise = __webpack_exports__);` ;
463
- case "(__webpack_exports__=await __webpack_exports__)" :
464
- return `(__webpack_exports__=globalThis.${ jsName } =await (globalThis.${ jsName } Promise=__webpack_exports__))` ;
465
459
}
466
460
return match ;
467
461
} ) ;
Original file line number Diff line number Diff line change 13
13
* limitations under the License.
14
14
*/
15
15
16
- // Ensure that the viewer waits for the library to complete loading,
17
- // to avoid breaking e.g. the standalone viewer components (see issue 17228).
18
- if (
19
- ( typeof PDFJSDev === "undefined" || PDFJSDev . test ( "GENERIC" ) ) &&
20
- ! globalThis . pdfjsLib
21
- ) {
22
- await globalThis . pdfjsLibPromise ;
23
- }
24
-
25
16
const {
26
17
AbortException,
27
18
AnnotationEditorLayer,
You can’t perform that action at this time.
0 commit comments