File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/firebase-database Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -656,16 +656,20 @@ export class Database implements IDatabase {
656656 }
657657
658658 set persistenceCacheSizeBytes ( bytes ) {
659- this . native . setPersistenceCacheSizeBytes ( bytes ) ;
660- this . #persistenceCacheSizeBytes = bytes ;
659+ try {
660+ this . native . setPersistenceCacheSizeBytes ( bytes ) ;
661+ this . #persistenceCacheSizeBytes = bytes ;
662+ } catch ( e ) { }
661663 }
662664 #persistenceEnabled: boolean = false ;
663665 get persistenceEnabled ( ) : boolean {
664666 return this . #persistenceEnabled;
665667 }
666668 set persistenceEnabled ( value ) {
667- this . native . setPersistenceEnabled ( value ) ;
668- this . #persistenceEnabled = value ;
669+ try {
670+ this . native . setPersistenceEnabled ( value ) ;
671+ this . #persistenceEnabled = value ;
672+ } catch ( e ) { }
669673 }
670674
671675 refFromURL ( url : string ) : Reference {
You can’t perform that action at this time.
0 commit comments