1
0
Fork 0
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:
Calixte Denizet 2023-03-27 11:40:58 +02:00
parent 384bd96165
commit 5f5256b4c4
3 changed files with 12 additions and 20 deletions

View file

@ -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"];
}