diff --git a/src/public/app/services/open.js b/src/public/app/services/open.js index f6847d384..8a89cc615 100644 --- a/src/public/app/services/open.js +++ b/src/public/app/services/open.js @@ -183,8 +183,6 @@ async function openDirectory(directory) { } } -const opendataDirectory = async (directory) => await openDirectory(directory); - export default { download, downloadFileNote, @@ -195,5 +193,5 @@ export default { openAttachmentExternally, openNoteCustom, openAttachmentCustom, - opendataDirectory + openDirectory } diff --git a/src/public/app/widgets/dialogs/about.js b/src/public/app/widgets/dialogs/about.js index 979fb2cab..e568e92bd 100644 --- a/src/public/app/widgets/dialogs/about.js +++ b/src/public/app/widgets/dialogs/about.js @@ -76,13 +76,12 @@ export default class AboutDialog extends BasicWidget { this.$buildRevision.attr('href', `https://github.com/TriliumNext/Notes/commit/${appInfo.buildRevision}`); if (utils.isElectron()) { this.$dataDirectory.html($('', { - href: 'file:///' + appInfo.dataDirectory, + href: '#', text: appInfo.dataDirectory, - target: '_blank' })); this.$dataDirectory.find("a").on('click', (event) => { event.preventDefault(); - openService.opendataDirectory(appInfo.dataDirectory); + openService.openDirectory(appInfo.dataDirectory); }) } else { this.$dataDirectory.text(appInfo.dataDirectory);