Skip to content

Commit

Permalink
Add existence check for runInContext. [closes #2694]
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Sep 30, 2016
1 parent 20fa523 commit 01c0950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fp/_convertBrowser.js
Expand Up @@ -12,7 +12,7 @@ function browserConvert(lodash, options) {
return baseConvert(lodash, lodash, options);
}

if (typeof _ == 'function') {
if (typeof _ == 'function' && typeof _.runInContext == 'function') {
_ = browserConvert(_.runInContext());
}
module.exports = browserConvert;

0 comments on commit 01c0950

Please sign in to comment.