1
0
mirror of https://github.com/lancedikson/bowser synced 2026-02-10 01:50:10 +00:00

Reformat null check src/parser.js

Co-authored-by: Naor Peled <thehecticbyte@gmail.com>
This commit is contained in:
Jonathan Kingston 2026-02-01 00:41:59 +00:00 committed by GitHub
parent 38ca321977
commit f5e7f89f9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ class Parser {
if (typeof skipParsingOrHints === 'boolean') {
skipParsing = skipParsingOrHints;
this._hints = clientHints;
} else if (typeof skipParsingOrHints === 'object' && skipParsingOrHints !== null) {
} else if (skipParsingOrHints != null && typeof skipParsingOrHints === 'object') {
this._hints = skipParsingOrHints;
} else {
this._hints = null;