[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Mon Dec 12 09:27:32 UTC 2016
loleaflet/src/core/Socket.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 6b795ae54df0d16fdc01e438f9887e452f34312b
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Mon Dec 12 14:55:50 2016 +0530
loleaflet: Remove troublesome extra argument to replace()
This errors out in firefox (in some versions).
Change-Id: I4c1d77249ec6883b70c961ffe8239157a0d6466c
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 5bb9f6c..010a795 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -77,7 +77,7 @@ L.Socket = L.Class.extend({
if (typeof msg === 'string') {
L.Log.log(msg, L.OUTGOING, coords);
if (this._map._docLayer && this._map._docLayer._debug) {
- console.log(+new Date() + ' %cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c ', 1), 'background:#fbb;color:black', 'color:red', 'color:black');
+ console.log(+new Date() + ' %cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c '), 'background:#fbb;color:black', 'color:red', 'color:black');
}
}
}
@@ -92,7 +92,7 @@ L.Socket = L.Class.extend({
if (typeof msg === 'string') {
L.Log.log(msg, L.OUTGOING, coords);
if (this._map._docLayer && this._map._docLayer._debug) {
- console.log(+new Date() + ' %cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c ', 1), 'background:#fbb;color:black', 'color:red', 'color:black');
+ console.log(+new Date() + ' %cOUTGOING%c: ' + msg.concat(' ').replace(' ', '%c '), 'background:#fbb;color:black', 'color:red', 'color:black');
}
}
@@ -157,7 +157,7 @@ L.Socket = L.Class.extend({
}
if (this._map._docLayer && this._map._docLayer._debug) {
- console.log(+new Date() + ' %cINCOMING%c: ' + textMsg.concat(' ').replace(' ', '%c ', 1), 'background:#ddf;color:black', 'color:blue', 'color:black');
+ console.log(+new Date() + ' %cINCOMING%c: ' + textMsg.concat(' ').replace(' ', '%c '), 'background:#ddf;color:black', 'color:blue', 'color:black');
}
var command = this.parseServerCmd(textMsg);
More information about the Libreoffice-commits
mailing list