Skip to content

Commit

Permalink
Merge pull request #470 from blowery/patch-1
Browse files Browse the repository at this point in the history
Make global-bind plugin safe in node envs, part 2
  • Loading branch information
ccampbell authored Jan 23, 2020
2 parents 56c7959 + 3277783 commit d339c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/global-bind/mousetrap-global-bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
};

Mousetrap.init();
}) (Mousetrap);
}) (typeof Mousetrap !== "undefined" ? Mousetrap : undefined);

0 comments on commit d339c01

Please sign in to comment.