1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #15514 from Snuffleupagus/DOMMatrix-polyfill

Replace the `DOMMatrix` polyfill, used with Node.js, with the one from `node-canvas`
This commit is contained in:
Tim van der Meij 2022-10-01 12:56:57 +02:00 committed by GitHub
commit 29a784c240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 23 deletions

View file

@ -50,9 +50,7 @@ if (
if (globalThis.DOMMatrix || !isNodeJS) {
return;
}
globalThis.DOMMatrix = __non_webpack_require__(
"dommatrix/dist/dommatrix.js"
);
globalThis.DOMMatrix = __non_webpack_require__("canvas").DOMMatrix;
})();
// Support: Node.js