summaryrefslogtreecommitdiffstats
path: root/loleaflet/src/core/Socket.js
diff options
context:
space:
mode:
Diffstat (limited to 'loleaflet/src/core/Socket.js')
-rw-r--r--loleaflet/src/core/Socket.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 8c94021689..ed0eb6e7d0 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -1121,6 +1121,12 @@ app.definitions.Socket = L.Class.extend({
this._map._setRestrictions(restrictionInfo);
return;
}
+ else if (textMsg.startsWith('blockedcommand: ')) {
+ var blockedInfo = app.socket.parseServerCmd(textMsg.substring(16));
+ if (blockedInfo.errorKind === 'freemiumdeny')
+ this._map.openSubscriptionPopup(blockedInfo.errorCmd);
+ return;
+ }
else if (!textMsg.startsWith('tile:') && !textMsg.startsWith('renderfont:') && !textMsg.startsWith('windowpaint:')) {
if (imgBytes !== undefined) {