From 25743c92d350da2c2c6e4e201b89b7dff075e41f Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Wed, 30 Nov 2022 21:25:16 -0800 Subject: [PATCH] Update export --- src/MerkleSumTree.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MerkleSumTree.ts b/src/MerkleSumTree.ts index e5bbff8..3a52534 100644 --- a/src/MerkleSumTree.ts +++ b/src/MerkleSumTree.ts @@ -159,3 +159,9 @@ export class MerkleSumTree extends Base { return curr.size === root.size && curr.hashed.toString('hex') === root.hashed.toString('hex') } } + +if (typeof window !== 'undefined') { + ;(window as any).MerkleSumTree = MerkleSumTree +} + +export default MerkleSumTree