From 994e3213f7972cd83f277c60a57523b656a29707 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Thu, 5 May 2022 15:25:09 -0400 Subject: [PATCH] infobar: fire 'infobar' message JSON data contains latest version. Change-Id: I86e581a5a148f32178d6665425e3105d38e04127 Signed-off-by: Henry Castro --- browser/src/layer/tile/CanvasTileLayer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/src/layer/tile/CanvasTileLayer.js b/browser/src/layer/tile/CanvasTileLayer.js index 3f7e574c6..999281c93 100644 --- a/browser/src/layer/tile/CanvasTileLayer.js +++ b/browser/src/layer/tile/CanvasTileLayer.js @@ -1704,6 +1704,10 @@ L.CanvasTileLayer = L.Layer.extend({ app.sectionContainer.setClearColor('#' + this.coreDocBGColor); } } + else if (textMsg.startsWith('infobar:')) { + obj = JSON.parse(textMsg.substring('infobar:'.length + 1)); + this._map.fire('infobar', obj); + } }, _onTabStopListUpdate: function (textMsg) {