mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
Fix nyc misconfiguration
This commit is contained in:
@@ -25,8 +25,8 @@ class Bowser {
|
||||
* bowser.getBrowser()
|
||||
*/
|
||||
constructor(UA, skipParsing=false) {
|
||||
if (!UA) {
|
||||
throw new Error('UserAgent is not defined');
|
||||
if (typeof UA !== 'string') {
|
||||
throw new Error('UserAgent should be a string');
|
||||
}
|
||||
return new Parser(UA, skipParsing);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user