fix: tweak

This commit is contained in:
Nolan Lawson 2021-03-19 07:25:21 -07:00
parent c6b48e0f47
commit 9585f20d6b
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ export function badgeObservers () {
if (!process.browser) {
return
}
// Chrome 86 on Linux in Circle CI seems to throw an error just by checking for this... not worth supporting.
// Chrome 86 on Linux in Circle CI seems to hang just by checking for this... not worth supporting.
if (isChromePre87() || !('setAppBadge' in navigator)) {
return
}

View File

@ -2,4 +2,4 @@ import { isChrome } from './isChrome'
import { thunk } from '../thunk'
// https://caniuse.com/cookie-store-api
export const isChromePre87 = thunk(() => process.browser && isChrome() && typeof cookieStore === 'undefined')
export const isChromePre87 = thunk(() => (process.browser && isChrome() && typeof cookieStore === 'undefined'))