diff --git a/src/routes/api/clipper.js b/src/routes/api/clipper.js index 5424f00c1..9a88cdf0e 100644 --- a/src/routes/api/clipper.js +++ b/src/routes/api/clipper.js @@ -165,7 +165,7 @@ async function openNote(req) { async function handshake() { return { appName: "trilium", - appVersion: appInfo.appVersion + protocolVersion: appInfo.clipperProtocolVersion } } diff --git a/src/services/app_info.js b/src/services/app_info.js index 2787ba67c..4800a5b88 100644 --- a/src/services/app_info.js +++ b/src/services/app_info.js @@ -6,6 +6,7 @@ const {TRILIUM_DATA_DIR} = require('./data_dir'); const APP_DB_VERSION = 136; const SYNC_VERSION = 9; +const CLIPPER_PROTOCOL_VERSION = 1; module.exports = { appVersion: packageJson.version, @@ -13,5 +14,6 @@ module.exports = { syncVersion: SYNC_VERSION, buildDate: build.buildDate, buildRevision: build.buildRevision, - dataDirectory: TRILIUM_DATA_DIR + dataDirectory: TRILIUM_DATA_DIR, + clipperProtocolVersion: CLIPPER_PROTOCOL_VERSION }; \ No newline at end of file