Handle any errors if unable to get presence or weather data

This commit is contained in:
floppydiskette 2024-08-31 00:47:01 +01:00
commit a715ae58af
No known key found for this signature in database
4 changed files with 31 additions and 15 deletions

View file

@ -1,3 +1,7 @@
<span>I'm</span>
<h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2>
@if($status == null)
<p>Status Unavailable</p>
@else
<span>I'm</span>
<h2 class="online-status" style="color: {{ $status["color"] }};text-shadow: var(--firefox-shadow) {{ $status["color"] }}4f !important">{{ $status["text"] }}!</h2>
@endif
<p><strong>Time in Britain:</strong> <span id="clock"></span></p>