Skip to content

Commit 99c5eaf

Browse files
committed
Fix missing reject function
1 parent 8a633bf commit 99c5eaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Viewer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,9 @@ export class Viewer {
720720
let fullDownloadPromise = this.loadSplatSceneToSplatBuffer(path, splatAlphaRemovalThreshold,
721721
onProgress, true, onStreamedSectionProgress, format);
722722

723-
const firstStreamedSectionBuildPromise = new AbortablePromise((resolver) => {
723+
const firstStreamedSectionBuildPromise = new AbortablePromise((resolver, rejecter) => {
724724
firstStreamedSectionBuildResolver = resolver;
725+
firstStreamedSectionBuildRejecter = rejecter;
725726
const clearDownloadPromise = () => {
726727
delete this.downloadPromisesToAbort[fullDownloadPromise.id];
727728
};

0 commit comments

Comments
 (0)