fix: tweak
This commit is contained in:
parent
c6b48e0f47
commit
9585f20d6b
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue