Fix compatibility with Next.js middleware

Fixes #512.
pull/516/head
Connor Bär 2 years ago committed by GitHub
parent f09411489c
commit 430dae3a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,7 +87,7 @@ class Parser {
return _browser.test(this); return _browser.test(this);
} }
if (_browser.test instanceof Array) { if (Array.isArray(_browser.test)) {
return _browser.test.some(condition => this.test(condition)); return _browser.test.some(condition => this.test(condition));
} }

Loading…
Cancel
Save