mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
refactor: isModernBrowser return boolean for avoiding duplicate call
This commit is contained in:
parent
2b4d79c199
commit
c6d8e8ff66
@ -20,7 +20,7 @@ const isModernBrowser = (ua) => {
|
||||
if (!browserVersion) {
|
||||
return false
|
||||
}
|
||||
return modernBrowsers[browser.name] && semver.gte(browserVersion, modernBrowsers[browser.name])
|
||||
return Boolean(modernBrowsers[browser.name] && semver.gte(browserVersion, modernBrowsers[browser.name]))
|
||||
}
|
||||
|
||||
let detected = false
|
||||
|
Loading…
Reference in New Issue
Block a user