mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
many small issues found by intellij analysis
This commit is contained in:
@@ -58,11 +58,11 @@ function downloadNoteRevision(noteId, noteRevisionId) {
|
||||
*/
|
||||
function getUrlForDownload(url) {
|
||||
if (utils.isElectron()) {
|
||||
// electron needs absolute URL so we extract current host, port, protocol
|
||||
// electron needs absolute URL, so we extract current host, port, protocol
|
||||
return `${getHost()}/${url}`;
|
||||
}
|
||||
else {
|
||||
// web server can be deployed on subdomain so we need to use relative path
|
||||
// web server can be deployed on subdomain, so we need to use relative path
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user