Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async getImage(sceneId, url, hasOvr = true) {
if (!this.sceneSources[sceneId]) {
this.sceneSources[sceneId] = {};
}
if (!this.sceneSources[sceneId][url]) {
if (hasOvr) {
this.sceneSources[sceneId][url] = fromUrls(url, [`${url}.ovr`]);
} else {
this.sceneSources[sceneId][url] = fromUrl(url);
}
}
return this.sceneSources[sceneId][url];
}