Skip to content

Commit

Permalink
Merge pull request #27 from mikemaccana/patch-1
Browse files Browse the repository at this point in the history
Explicitly mention that window globals aren't necessary
  • Loading branch information
jordaaash authored Dec 10, 2023
2 parents 9d17ab0 + 63e6015 commit 2a1d55c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WALLET.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ const uniqueNewYork = new UniqueNewYork();
// Register your wallet using the Wallet Standard, passing the reference.
initialize(uniqueNewYork);

// Attach the reference to the window, guarding against errors.
// New wallets no longer need to register wallet globals - and can
// ignore the code below. However if you have legacy apps relying on globals,
// this is the safest way to attach the reference to the window, guarding against errors.
try {
Object.defineProperty(window, 'uniqueNewYork', { value: uniqueNewYork });
}
Expand Down

0 comments on commit 2a1d55c

Please sign in to comment.