feat(character): add option to use the ZAM CDN for the model viewer assets (#22)

This commit is contained in:
Axel Cocat 2022-05-14 22:19:21 +02:00 committed by GitHub
parent a98f9b4658
commit 905f1549fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 2 deletions

View file

@ -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,