Skip to content

Commit d339c01

Browse files
authored
Merge pull request #470 from blowery/patch-1
Make global-bind plugin safe in node envs, part 2
2 parents 56c7959 + 3277783 commit d339c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plugins/global-bind/mousetrap-global-bind.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
};
4444

4545
Mousetrap.init();
46-
}) (Mousetrap);
46+
}) (typeof Mousetrap !== "undefined" ? Mousetrap : undefined);

0 commit comments

Comments
 (0)