We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28a503a commit d1bbb10Copy full SHA for d1bbb10
spine-ts/spine-player/src/Player.ts
@@ -291,6 +291,7 @@ export class SpinePlayer implements Disposable {
291
292
private validateConfig (config: SpinePlayerConfig) {
293
if (!config) throw new Error("A configuration object must be passed to to new SpinePlayer().");
294
+ if ((config as any).skelUrl) config.skeleton = (config as any).skelUrl;
295
if (!config.skeleton && !config.jsonUrl && !config.binaryUrl) throw new Error("A URL must be specified for the skeleton JSON or binary file.");
296
if (!config.scale) config.scale = 1;
297
if (!config.atlas && !config.atlasUrl) throw new Error("A URL must be specified for the atlas file.");
0 commit comments