Skip to content

Commit

Permalink
Merge pull request #141 from jetistyum/patch-2
Browse files Browse the repository at this point in the history
Fixes: js error when trying to detect jquery
  • Loading branch information
housseindjirdeh authored Oct 9, 2019
2 parents 21bbe51 + ab5c74e commit 097ae36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ var d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests = {
npm: 'jquery',
test: function(win) {
var jq = win.jQuery || win.$;
if (jq && jq.fn) {
if (jq && jq.fn && jq.fn.jquery) {
return { version: jq.fn.jquery.replace(/[^\d+\.+]/g, '') || UNKNOWN_VERSION};
}
return false;
Expand Down

0 comments on commit 097ae36

Please sign in to comment.