loleaflet: Remove hack for viewid=0
This is not needed now, as fixed in loolwsd.
This commit is contained in:
parent
8a55ab1ee5
commit
ef878326b7
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue