Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
Make global-bind plugin safe in node envs, part 2
Browse files Browse the repository at this point in the history
Follow on from ccampbell#465, which missed the ReferenceError from trying to use the Mousetrap global at the end of the file.
  • Loading branch information
blowery authored and romanrizzi committed Mar 5, 2020
1 parent cd57a30 commit f113904
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 f113904

Please sign in to comment.