mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-22 06:02:29 +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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue