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:
commit
29a784c240
4 changed files with 19 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue