Skip to content

Commit

Permalink
Added initial WebSocketProvider (ethers-io#141).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 12, 2020
1 parent d91f4a0 commit 85b2d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as ethers from "./ethers";

try {
const anyGlobal = (window as any);
const anyGlobal = ((window || { }) as any);

if (anyGlobal._ethers == null) {
anyGlobal._ethers = ethers;
Expand Down

0 comments on commit 85b2d9c

Please sign in to comment.