mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-23 09:48:59 +00:00
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:
parent
8fba2ed466
commit
6018a2f34f
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue