We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 462a74e + 92dabdc commit fcffa43Copy full SHA for fcffa43
src/framework/parsers/ply.js
@@ -591,7 +591,8 @@ class PlyParser {
591
*/
592
async load(url, callback, asset) {
593
try {
594
- const response = await fetch(url.load);
+ // either use the fetch request passed in by the application or initiate it ourselves
595
+ const response = await (asset.file?.contents ?? fetch(url.load));
596
if (!response || !response.body) {
597
callback('Error loading resource', null);
598
} else {
0 commit comments