mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 02:00:31 +08:00
Remove unused polyfills
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
// A simple mock for some HTMLCanvasElement functions to run in a node env.
|
||||
|
||||
HTMLCanvasElement.prototype.getContext = () => ({
|
||||
fillRect: () => null,
|
||||
});
|
||||
|
||||
HTMLCanvasElement.prototype.toDataURL = () => null;
|
||||
@@ -1,5 +0,0 @@
|
||||
// This shim is used as a stand-in for the node "events" library, used by
|
||||
// the "keccack" package depended on by @gnosis.pm/safe-core-sdk.
|
||||
import events from "events";
|
||||
|
||||
export default events;
|
||||
@@ -1,9 +0,0 @@
|
||||
/* eslint-disable no-undef */
|
||||
import fetch from "node-fetch";
|
||||
|
||||
if (!globalThis.fetch) {
|
||||
globalThis.fetch = fetch;
|
||||
globalThis.Headers = fetch.Headers;
|
||||
globalThis.Request = fetch.Request;
|
||||
globalThis.Response = fetch.Response;
|
||||
}
|
||||
Reference in New Issue
Block a user