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:
parent
952b2b3427
commit
b3ca5cdc6f
@ -64,8 +64,14 @@ function setupDownloadPage() {
|
||||
} else {
|
||||
const os = getOs();
|
||||
if (!os || !downloadLinks[os]) {
|
||||
// If we don't know, display the section to manually download the app
|
||||
$('.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 {
|
||||
// Otherwise, start the download
|
||||
window.location = downloadLinks[os];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user