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