Skip to content

Commit

Permalink
Explicitly mention that window globals aren't necessary
Browse files Browse the repository at this point in the history
Per @jordansexton's comments on #18
  • Loading branch information
mikemaccana authored Jun 5, 2023
1 parent bad2c9a commit 63e6015
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 63e6015

Please sign in to comment.