Skip to content

Commit

Permalink
Merge pull request #465 from blowery/patch-1
Browse files Browse the repository at this point in the history
Make global-bind plugin safe in node envs
  • Loading branch information
ccampbell authored Jan 23, 2020
2 parents 9b8837b + 42a8b45 commit fc4b6d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/global-bind/mousetrap-global-bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*/
/* global Mousetrap:true */
(function(Mousetrap) {
if (! Mousetrap) {
return;
}
var _globalCallbacks = {};
var _originalStopCallback = Mousetrap.prototype.stopCallback;

Expand Down

0 comments on commit fc4b6d0

Please sign in to comment.