default logo format to svg

This commit is contained in:
Gamebrary 2020-08-26 11:06:47 -07:00
parent 6097294866
commit d2a4102a39
2 changed files with 2 additions and 3 deletions

View file

@ -23,8 +23,7 @@
@click="handleClick(platform.id)"
>
<b-img
:src="`/static/platform-logos/${platform.slug}.${platform.logoFormat
? platform.logoFormat : 'svg'}`"
:src="`/static/platform-logos/${platform.slug}.${platform.logoFormat}`"
:alt="platform.name"
class="platform-logo py-2"
/>

View file

@ -31,7 +31,7 @@ export default {
// categoryId: platform.category,
generation: platform.generation || 0,
bgHex: PLATFORM_BG_HEX[platform.id] || null,
logoFormat: PLATFORM_LOGO_FORMAT[platform.id] || null,
logoFormat: PLATFORM_LOGO_FORMAT[platform.id] || 'svg',
};
return formattedPlatform;