Fix uncaught promises
This commit is contained in:
parent
7f84b0d100
commit
a0b0b536d3
|
|
@ -168,7 +168,9 @@ export class SkinViewer {
|
||||||
this.playerObject.skin.visible = true;
|
this.playerObject.skin.visible = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return loadImage(source).then(image => this.loadSkin(image, model, options));
|
return loadImage(source).then(image => this.loadSkin(image, model, options)).catch(e => {
|
||||||
|
console.log(e);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -196,6 +198,8 @@ export class SkinViewer {
|
||||||
return loadImage(source).then(image => {
|
return loadImage(source).then(image => {
|
||||||
this.capeImage = image
|
this.capeImage = image
|
||||||
this.loadCape(image, options)
|
this.loadCape(image, options)
|
||||||
|
}).catch(e => {
|
||||||
|
console.log(e);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -219,7 +223,9 @@ export class SkinViewer {
|
||||||
this.earTexture.needsUpdate = true;
|
this.earTexture.needsUpdate = true;
|
||||||
this.playerObject.ears.visible = true;
|
this.playerObject.ears.visible = true;
|
||||||
} else {
|
} else {
|
||||||
return loadImage(source).then(image => this.loadEars(image, options));
|
return loadImage(source).then(image => this.loadEars(image, options)).catch(e => {
|
||||||
|
console.log(e);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue