mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
ESMify some modules for m-c (bug 1824610)
This commit is contained in:
parent
384bd96165
commit
5f5256b4c4
3 changed files with 12 additions and 20 deletions
|
@ -16,7 +16,7 @@
|
|||
// In mozilla-central, this file is loaded as non-module script,
|
||||
// so it mustn't have any dependencies.
|
||||
|
||||
class SandboxSupportBase {
|
||||
export class SandboxSupportBase {
|
||||
/**
|
||||
* @param {DOMWindow} - win
|
||||
*/
|
||||
|
@ -181,10 +181,3 @@ class SandboxSupportBase {
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
|
||||
exports.SandboxSupportBase = SandboxSupportBase;
|
||||
} else {
|
||||
/* eslint-disable-next-line no-unused-vars, no-var */
|
||||
var EXPORTED_SYMBOLS = ["SandboxSupportBase"];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue