From ef878326b7a3a8fbf6f9203c58618ed1a8f64dd1 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 11 Aug 2016 17:34:36 +0530 Subject: [PATCH] loleaflet: Remove hack for viewid=0 This is not needed now, as fixed in loolwsd. --- loleaflet/src/layer/tile/TileLayer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index f76128b92..62c2f1bbb 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -525,8 +525,8 @@ L.TileLayer = L.GridLayer.extend({ var obj = JSON.parse(textMsg); var viewId = parseInt(obj.viewId); - // Ignore if viewid=0 or is same as ours - if (viewId === 0 || viewId === this._viewId) { + // Ignore if viewid is same as ours + if (viewId === this._viewId) { return; } @@ -550,8 +550,8 @@ L.TileLayer = L.GridLayer.extend({ var obj = JSON.parse(textMsg); var viewId = parseInt(obj.viewId); - // Ignore if viewid=0 or is same as ours - if (viewId === 0 || viewId === this._viewId) { + // Ignore if viewid is same as ours + if (viewId === this._viewId) { return; }