From 6018a2f34f5f3e03ff08189fe1360ee4070dfd8d Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Thu, 21 Sep 2023 15:36:23 -0400 Subject: [PATCH] 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 ### What issues does this PR fix or reference? N/A, user reported on Discord ### How to test this PR? `yarn website:dev` should appear correctly now. Signed-off-by: Charlie Drage --- website/src/pages/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index cc1d9800083..ecd22409bc5 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -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) {