From 6a99af64a88496f87e4a30f14fc48189c26e5c1f Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 7 Jul 2019 22:27:06 +0200 Subject: [PATCH] added clipper protocol version --- src/routes/api/clipper.js | 2 +- src/services/app_info.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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