Dont show album art if url not defined

This commit is contained in:
Roscoe 2025-08-30 04:34:06 +01:00
commit 7ba32186cf
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
2 changed files with 3 additions and 1 deletions

View file

@ -5,7 +5,7 @@
return [
'name' => env('APP_NAME', 'wah.moe'),
'version' => '2025.08.30',
'version' => '2025.08.30-patch0',
'env' => env('APP_ENV', 'production'),
'debug' => (bool) env('APP_DEBUG', false),
'url' => env('APP_URL', 'http://localhost'),

View file

@ -13,9 +13,11 @@
<br>
@else
<div class="current-track">
@if (isset($artUrl))
<div>
<img src="{{ $artUrl }}" alt="Album cover for {{ $track["title"] }} by {{ $track["artist"] }}">
</div>
@endif
<div>
<h2>{{ $track["header"] }}:</h2>
<a href="{{ $track["url"] }}"><font color="#000000">{{ $track["title"] }}</font></a><br>