FS.enablePersistence()
.catch(({code}) => {
switch (code) {
case 'failed-precondition':
// Multiple tabs open, persistence can only be enabled
// in one tab at a time.
break
case 'unimplemented':
// The current browser does not support all of the
// features required to enable persistence
break
default:
break
}
})
Description
https://firebase.google.com/docs/firestore/manage-data/enable-offline