loleaflet: move decoding comment where decoding happens
This commit is contained in:
parent
d18667d000
commit
346b76fd93
2 changed files with 1 additions and 1 deletions
|
@ -86,6 +86,7 @@ L.Socket = {
|
|||
// if it's not a tile, parse the whole message
|
||||
textMsg = String.fromCharCode.apply(null, imgBytes);
|
||||
}
|
||||
// Decode UTF-8.
|
||||
textMsg = decodeURIComponent(window.escape(textMsg));
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -903,7 +903,6 @@ L.TileLayer = L.GridLayer.extend({
|
|||
this._map.fire('error', {msg: 'Oops, no content available yet'});
|
||||
}
|
||||
else {
|
||||
// Decode UTF-8.
|
||||
e.clipboardData.setData('text/plain', this._selectionTextContent);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue