This repository was archived by the owner on Jan 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,19 @@ class LocalForageCacheDriver {
25
25
if ( typeof this . cacheErrorsCount [ collectionName ] === 'undefined' ) {
26
26
this . cacheErrorsCount [ collectionName ] = 0
27
27
}
28
- if ( typeof this . localCache === 'undefined' ) {
29
- this . localCache = { }
28
+ if ( typeof Vue . prototype . $ localCache === 'undefined' ) {
29
+ Vue . prototype . $ localCache = { }
30
30
}
31
- if ( typeof this . localCache [ dbName ] === 'undefined' ) {
32
- this . localCache [ dbName ] = { }
31
+ if ( typeof Vue . prototype . $ localCache[ dbName ] === 'undefined' ) {
32
+ Vue . prototype . $ localCache[ dbName ] = { }
33
33
}
34
- if ( typeof this . localCache [ dbName ] [ collectionName ] === 'undefined' ) {
35
- this . localCache [ dbName ] [ collectionName ] = { }
34
+ if ( typeof Vue . prototype . $ localCache[ dbName ] [ collectionName ] === 'undefined' ) {
35
+ Vue . prototype . $ localCache[ dbName ] [ collectionName ] = { }
36
36
}
37
37
this . _collectionName = collectionName
38
38
this . _dbName = dbName
39
39
this . _useLocalCacheByDefault = useLocalCacheByDefault
40
- this . _localCache = this . localCache [ dbName ] [ collectionName ]
40
+ this . _localCache = Vue . prototype . $ localCache[ dbName ] [ collectionName ]
41
41
this . _localForageCollection = collection
42
42
this . _lastError = null
43
43
this . _persistenceErrorNotified = false
You can’t perform that action at this time.
0 commit comments