loleaflet: Remove hack for viewid=0

This is not needed now, as fixed in loolwsd.
This commit is contained in:
Pranav Kant 2016-08-11 17:34:36 +05:30
parent 8a55ab1ee5
commit ef878326b7

View file

@ -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;
}