mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
8 lines
207 B
JavaScript
8 lines
207 B
JavaScript
// A simple mock for some HTMLCanvasElement functions to run in a node env.
|
|
|
|
HTMLCanvasElement.prototype.getContext = () => ({
|
|
fillRect: () => null
|
|
});
|
|
|
|
HTMLCanvasElement.prototype.toDataURL = () => null;
|