Skip to content

Commit

Permalink
fix(suite): make certain imports and global calls more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtatranta committed Feb 26, 2025
1 parent c7f857b commit 52db480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/address-validator/src/crypto/cnBase58.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var JSBigInt = require('./biginteger')['JSBigInt'];
var moduleImport = require('./biginteger');
var JSBigInt = moduleImport.JSBigInt;

/**
Copyright (c) 2017, moneroexamples
Expand Down
8 changes: 5 additions & 3 deletions packages/connect-web/src/module/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ const TrezorConnect = factory(
export default TrezorConnect;
export * from '@trezor/connect/src/exports';

window.addEventListener('beforeunload', () => {
impl.dispose();
});
if (typeof window !== 'undefined') {
window.addEventListener('beforeunload', () => {
impl.dispose();
});
}

0 comments on commit 52db480

Please sign in to comment.