File tree 1 file changed +8
-4
lines changed
packages/firebase-database 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 {
656
656
}
657
657
658
658
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 ) { }
661
663
}
662
664
#persistenceEnabled: boolean = false ;
663
665
get persistenceEnabled ( ) : boolean {
664
666
return this . #persistenceEnabled;
665
667
}
666
668
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 ) { }
669
673
}
670
674
671
675
refFromURL ( url : string ) : Reference {
You can’t perform that action at this time.
0 commit comments