1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Desktop, Cli: Fixed issue when getting version info

This commit is contained in:
Laurent Cozic
2021-04-07 19:12:37 +02:00
parent 5667e687e9
commit 54884d6db4
3 changed files with 17 additions and 9 deletions

View File

@ -87,7 +87,12 @@ try {
keytar = null;
}
shimInit(null, keytar, React);
function appVersion() {
const p = require('./packageInfo.js');
return p.version;
}
shimInit(null, keytar, React, appVersion);
// Disable drag and drop of links inside application (which would
// open it as if the whole app was a browser)