File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -81,27 +81,25 @@ var Fetch = {
81
81
#endif
82
82
Fetch . dbInstance = db ;
83
83
84
- #if USE_PTHREADS
85
84
if ( isMainThread ) {
85
+ #if USE_PTHREADS
86
86
if ( typeof SharedArrayBuffer !== 'undefined' ) Fetch . initFetchWorker ( ) ;
87
+ #endif
87
88
removeRunDependency ( 'library_fetch_init' ) ;
88
89
}
89
- #else
90
- if ( typeof ENVIRONMENT_IS_FETCH_WORKER === 'undefined' || ! ENVIRONMENT_IS_FETCH_WORKER ) removeRunDependency ( 'library_fetch_init' ) ;
91
- #endif
92
90
} ;
93
91
var onerror = function ( ) {
94
92
#if FETCH_DEBUG
95
93
console . error ( 'fetch: IndexedDB open failed.' ) ;
96
94
#endif
97
95
Fetch . dbInstance = false ;
98
96
99
- #if USE_PTHREADS
100
97
if ( isMainThread ) {
98
+ #if USE_PTHREADS
101
99
if ( typeof SharedArrayBuffer !== 'undefined' ) Fetch . initFetchWorker ( ) ;
100
+ #endif
102
101
removeRunDependency ( 'library_fetch_init' ) ;
103
102
}
104
- #endif
105
103
} ;
106
104
Fetch . openDatabase ( 'emscripten_filesystem' , 1 , onsuccess , onerror ) ;
107
105
You can’t perform that action at this time.
0 commit comments