mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 11:48:29 +00:00
[adapters] 修复资源未缓存成功的问题
This commit is contained in:
parent
6114dba7aa
commit
6c720d359d
@ -209,7 +209,7 @@ var cacheManager_worker = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
cacheFile(callback, id, srcUrl, cacheEnabled, cacheBundleRoot, isCopy) {
|
cacheFile(callback, id, srcUrl, cacheEnabled, cacheBundleRoot, isCopy) {
|
||||||
cacheEnabled = cacheEnabled !== undefined ? cacheEnabled : this.cacheEnabled;
|
cacheEnabled = cacheEnabled != null ? cacheEnabled : this.cacheEnabled;
|
||||||
if (!cacheEnabled || this.cacheQueue[id] || this.cachedFiles[id]) {
|
if (!cacheEnabled || this.cacheQueue[id] || this.cachedFiles[id]) {
|
||||||
if (callback) callback(null);
|
if (callback) callback(null);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user