diff --git a/dashboard-ui/dashboard/wizardcomponents.js b/dashboard-ui/dashboard/wizardcomponents.js index 1348490efb..47a2b08d72 100644 --- a/dashboard-ui/dashboard/wizardcomponents.js +++ b/dashboard-ui/dashboard/wizardcomponents.js @@ -11,13 +11,15 @@ ApiClient.getSystemInfo().then(function (systemInfo) { - if (systemInfo.OperatingSystem == 'Windows') { + var operatingSystem = systemInfo.OperatingSystem.toLowerCase(); + + if (operatingSystem == 'windows') { view.querySelector('.fldSelectEncoderPathType').classList.add('hide'); } else { view.querySelector('.fldSelectEncoderPathType').classList.remove('hide'); } - if (systemInfo.OperatingSystem == 'Windows' && systemInfo.SystemArchitecture != 'Arm') { + if (operatingSystem == 'windows' && systemInfo.SystemArchitecture != 'Arm') { view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', 'https://ffmpeg.zeranoe.com'); @@ -28,7 +30,7 @@ instructions = 'Download FFmpeg 64-Bit Static'; } - } else if (systemInfo.OperatingSystem == 'Linux' && systemInfo.SystemArchitecture != 'Arm') { + } else if (operatingSystem == 'linux') { view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', 'http://johnvansickle.com/ffmpeg'); @@ -39,7 +41,7 @@ instructions = 'Download x86_64 build'; } - } else if (systemInfo.OperatingSystem == 'Osx' && systemInfo.SystemArchitecture == 'X64') { + } else if (operatingSystem == 'osx' && systemInfo.SystemArchitecture == 'X64') { view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', 'http://evermeet.cx/ffmpeg'); instructions = 'Download both ffmpeg and ffprobe, and extract them to the same folder.';