[Libreoffice-commits] online.git: loleaflet/src

Ashod Nakashian ashod.nakashian at collabora.co.uk
Mon Jan 30 05:09:31 UTC 2017


 loleaflet/src/core/Socket.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 65be8a3e562f44267d4824c0f6813993bb288c1f
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Mon Jan 30 00:07:29 2017 -0500

    loleaflet: 50 docs or more is considered prod deployment
    
    Change-Id: Ib36fdc43a7c94dc63ec9e31fe21eea475913c8d5
    Reviewed-on: https://gerrit.libreoffice.org/33681
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index e42e951..245fa56 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -380,8 +380,8 @@ L.Socket = L.Class.extend({
 				this._map._fatal = true;
 				this._map._active = false; // Practically disconnected.
 
-				// Servers configured for more than 50 documents are not demo/development.
-				if (parseInt(command.params[0]) > 50) {
+				// Servers configured for 50 documents are not demo/development.
+				if (parseInt(command.params[0]) >= 50) {
 					textMsg = errorMessages.limitreachedprod;
 					textMsg = textMsg.replace(/%0/g, command.params[0]);
 					textMsg = textMsg.replace(/%1/g, command.params[1]);


More information about the Libreoffice-commits mailing list