fix: fix website not appearing correctly (#4022)

### What does this PR do?

Fixes the error of "url is not defined".

For some reason, this was not failing netlify / `yarn website:build`.

### Screenshot/screencast of this PR

<!-- Please include a screenshot or a screencast
explaining what is doing this PR -->

### What issues does this PR fix or reference?

N/A, user reported on Discord

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

### How to test this PR?

`yarn website:dev` should appear correctly now.

<!-- Please explain steps to reproduce -->

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
This commit is contained in:
Charlie Drage 2023-09-21 15:36:23 -04:00 committed by GitHub
parent 8fba2ed466
commit 6018a2f34f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
function DownloadClientLinks() {
let operatingSystem = '';
let varIcon = undefined;
let url = 'macos'; // Just use macos by default as the url before checking the user agent in case of an odd issue (unable to get userAgent / it's blank / etc.)
const userAgent = navigator.userAgent;
if (userAgent.indexOf('Windows') !== -1) {