diff options
author | Cheng-Han, Wu | 2016-06-17 16:31:36 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-06-17 16:31:36 +0800 |
commit | 73f6d383b5e7376beef02da2fa583400a47e6534 (patch) | |
tree | 0dcc38953e1e3462fd0d32ccc0a3e0e2afcd7bf2 /lib | |
parent | 03e68f92ebe7051b209790eb27d30fce87c1bbc7 (diff) |
Add minimumCompatibleVersion and update refresh modal to show more detail informations
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.js | 2 | ||||
-rw-r--r-- | lib/realtime.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/config.js b/lib/config.js index 3828e2dc..27e4ed91 100644 --- a/lib/config.js +++ b/lib/config.js @@ -78,11 +78,13 @@ function getserverurl() { } var version = '0.4.2'; +var minimumCompatibleVersion = '0.4.2'; var maintenance = true; var cwd = path.join(__dirname, '..'); module.exports = { version: version, + minimumCompatibleVersion: minimumCompatibleVersion, maintenance: maintenance, debug: debug, urlpath: urlpath, diff --git a/lib/realtime.js b/lib/realtime.js index b7a17d34..8ed54437 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -708,7 +708,10 @@ function connection(socket) { //check version socket.on('version', function () { - socket.emit('version', config.version); + socket.emit('version', { + version: config.version, + minimumCompatibleVersion: config.minimumCompatibleVersion + }); }); //received cursor focus |