feat(character): add option to use the ZAM CDN for the model viewer assets (#22)
This commit is contained in:
parent
a98f9b4658
commit
905f1549fd
6 changed files with 24 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ export class Config {
|
|||
public loadDbcs: boolean;
|
||||
public hideGameMasters: boolean;
|
||||
public transmogModule: boolean;
|
||||
public useZamCdn: boolean;
|
||||
public realms: IRealmConfig[];
|
||||
public worldDatabase: IDatabaseConfig;
|
||||
public dbQueryTimeout: number;
|
||||
|
|
|
|||
|
|
@ -213,6 +213,7 @@ export class CharacterController {
|
|||
res.render("character.hbs", {
|
||||
title: `Armory - ${charData.name}`,
|
||||
...this.makeSharedDataObject(realm, charData),
|
||||
contentPath: this.armory.config.useZamCdn ? "https://wow.zamimg.com/modelviewer/live/" : (this.armory.config.websiteRoot + "/data/"),
|
||||
data: {
|
||||
race: charData.race,
|
||||
gender: charData.gender,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue