mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-25 07:12:28 +00:00
fix: jQuery element should be an object
This commit is contained in:
parent
72d094373b
commit
f12c456987
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ const sd = require('@wildpeaks/snapshot-dom')
|
||||||
const beautify = require('js-beautify').html
|
const beautify = require('js-beautify').html
|
||||||
|
|
||||||
function isJqueryElement (x) {
|
function isJqueryElement (x) {
|
||||||
return x && typeof x !== 'string' && 'wrap' in x
|
return x && typeof x === 'object' && 'wrap' in x
|
||||||
}
|
}
|
||||||
|
|
||||||
// converts DOM element to a JSON object
|
// converts DOM element to a JSON object
|
||||||
|
|
Loading…
Reference in a new issue