Skip to content

Commit

Permalink
fix(browser): fix runtime error due to using global
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kelly committed Aug 17, 2022
1 parent 0123cec commit 8d39f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import { browserHelper } from "./helpers";
export { Icons, Spots, browserHelper };

// automatically run if in the browser and not being imported
if (global && global.document && typeof exports !== "object") {
if (window && window.document && typeof exports !== "object") {
browserHelper(Icons, Spots);
}

0 comments on commit 8d39f1c

Please sign in to comment.