Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Remove unused polyfills
Rūdolfs Ošiņš committed 3 years ago
commit d86eb2ee288f664b092d67a97f437abb6089cb58
parent df49db3ded643ec1e98462a61bcec72d7767a3e7
3 files changed +0 -21
deleted src/polyfills/canvas.js
@@ -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;
deleted src/polyfills/events.ts
@@ -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;
deleted src/polyfills/fetch.js
@@ -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;
-
}