Skip to content

Commit 51355d8

Browse files
authored
Delete invalid and outdated fallback (#30744)
1 parent fc4ef55 commit 51355d8

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

examples/jsm/exporters/GLTFExporter.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1465,25 +1465,7 @@ class GLTFWriter {
14651465

14661466
} else {
14671467

1468-
if ( canvas.toDataURL !== undefined ) {
1469-
1470-
imageDef.uri = canvas.toDataURL( mimeType );
1471-
1472-
} else {
1473-
1474-
pending.push(
1475-
1476-
getToBlobPromise( canvas, mimeType )
1477-
.then( blob => new FileReader().readAsDataURL( blob ) )
1478-
.then( dataURL => {
1479-
1480-
imageDef.uri = dataURL;
1481-
1482-
} )
1483-
1484-
);
1485-
1486-
}
1468+
imageDef.uri = canvas.toDataURL( mimeType );
14871469

14881470
}
14891471

0 commit comments

Comments
 (0)