1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Doc: Redirect to Install section when trying to download Linux app

This commit is contained in:
Laurent Cozic 2021-07-11 19:20:18 +01:00
parent 952b2b3427
commit b3ca5cdc6f

View File

@ -64,8 +64,14 @@ function setupDownloadPage() {
} else { } else {
const os = getOs(); const os = getOs();
if (!os || !downloadLinks[os]) { if (!os || !downloadLinks[os]) {
// If we don't know, display the section to manually download the app
$('.page-download .get-it-desktop').show(); $('.page-download .get-it-desktop').show();
} else if (os === 'linux') {
// If it's Linux, the user should probably install it using the
// install script so we redirect to the install section
window.location = 'https://joplinapp.org/help/#desktop-applications';
} else { } else {
// Otherwise, start the download
window.location = downloadLinks[os]; window.location = downloadLinks[os];
} }
} }