|
|
|
|
@ -5,6 +5,8 @@ |
|
|
|
|
* @license MIT |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
tts.DoCacheAssets = true; |
|
|
|
|
|
|
|
|
|
var assets_loaded_once = []; |
|
|
|
|
|
|
|
|
|
tts.AddAssetCachedFile = function (full_file) { |
|
|
|
|
@ -21,7 +23,7 @@ |
|
|
|
|
options = {}; |
|
|
|
|
} |
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
var defaults_caching = tts.getValue(DO_CACHE_ON_ASSETS, true); |
|
|
|
|
var defaults_caching = tts.getValue(tts.DoCacheAssets, true); |
|
|
|
|
var file = source.name, kind = file.split('.').pop(), doCache = tts.getValue(source.useCache, defaults_caching); |
|
|
|
|
var full_file = tts.getValue(source.path, "") + file; |
|
|
|
|
var ts = tts.getValue(source.ts, ""); |
|
|
|
|
|