Clean comments

This commit is contained in:
Ian Philips 2022-09-01 07:01:49 -06:00
parent fec4e19c1d
commit a8d7e91a02

View File

@ -12,7 +12,7 @@ export const app = getApps().length ? getApp() : initializeApp(FIREBASE_CONFIG)
function iOS() { function iOS() {
if (typeof navigator === 'undefined') { if (typeof navigator === 'undefined') {
// we're on the server, do whatever // We're on the server, proceed normally
return false return false
} }
return ( return (
@ -28,7 +28,7 @@ function iOS() {
(navigator.userAgent.includes('Mac') && 'ontouchend' in document) (navigator.userAgent.includes('Mac') && 'ontouchend' in document)
) )
} }
// Necessary for ios, see: https://github.com/firebase/firebase-js-sdk/issues/6118 // Long polling is necessary for ios, see: https://github.com/firebase/firebase-js-sdk/issues/6118
const opts = iOS() ? { experimentalForceLongPolling: true } : {} const opts = iOS() ? { experimentalForceLongPolling: true } : {}
export const db = initializeFirestore(app, opts) export const db = initializeFirestore(app, opts)