Skip to content

Commit

Permalink
Don't check window for Node.js env check
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhly committed Aug 10, 2022
1 parent 6a36a56 commit 2ecb199
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/solana-contrib/src/utils/printAccountOwners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export async function printAccountOwners(
if (
expectIndex > 0 &&
typeof process !== "undefined" &&
typeof window === "undefined"
process.versions !== undefined &&
process.versions.node !== undefined
) {
const maybeProcess: MaybeProcess = process;
const targetLine = callStack[expectIndex + 1];
Expand Down

0 comments on commit 2ecb199

Please sign in to comment.