Skip to content

Commit fcffa43

Browse files
authored
Merge branch 'main' into fix-categories
2 parents 462a74e + 92dabdc commit fcffa43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/framework/parsers/ply.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ class PlyParser {
591591
*/
592592
async load(url, callback, asset) {
593593
try {
594-
const response = await fetch(url.load);
594+
// either use the fetch request passed in by the application or initiate it ourselves
595+
const response = await (asset.file?.contents ?? fetch(url.load));
595596
if (!response || !response.body) {
596597
callback('Error loading resource', null);
597598
} else {

0 commit comments

Comments
 (0)