This commit is contained in:
TheGiddyLimit
2024-01-25 23:07:09 +00:00
parent 5ffd4acdb4
commit a4e391a3e7
94 changed files with 7263 additions and 939 deletions

View File

@@ -118,8 +118,7 @@ class VehiclesPage extends ListPage {
(this._$dispToken = this._$dispToken || $(`#float-token`)).empty();
if (ent.vehicleType) {
const hasToken = ent.tokenUrl || ent.hasToken;
if (hasToken) {
if (Renderer.vehicle.hasToken(ent)) {
const imgLink = Renderer.vehicle.getTokenUrl(ent);
this._$dispToken.append(`<a href="${imgLink}" target="_blank" rel="noopener noreferrer"><img src="${imgLink}" id="token_image" class="token" alt="Token Image: ${(ent.name || "").qq()}" ${ent.tokenCredit ? `title="Credit: ${ent.tokenCredit.qq()}"` : ""} loading="lazy"></a>`);
}