-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch @tendermint/sig@0.6.0 for the project I'm working on.
the module needed window to work in cloudFlare so I added it like this.
Here is the diff that solved my problem:
diff --git a/node_modules/@tendermint/sig/index.js b/node_modules/@tendermint/sig/index.js
index e6d12ff..50435a9 100644
--- a/node_modules/@tendermint/sig/index.js
+++ b/node_modules/@tendermint/sig/index.js
@@ -1,4 +1,8 @@
let node = false;
+// if globalThis exists and is not window, use it
+if (typeof globalThis !== 'undefined' && typeof window === 'undefined'){
+ self.window = globalThis;
+}
try {
node = (Object.prototype.toString.call(global.process) === '[object process]');
}This issue body was partially generated by patch-package.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels