Revert "Action_Paste postMessage to work around the pasting mechanism."

This was not necessary in the end; and a bad idea in general probably,
so given that has never appeared in a release yet, let's revert it.

This reverts commit 5999a5b7cc.

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: I5ee98ea85324f584db7de702a8d98ff9a6780027
This commit is contained in:
Jan Holesovsky 2021-03-22 10:00:38 +01:00 committed by Jan Holesovsky
parent 92f6f1ef85
commit b6fb89c181

View file

@ -378,12 +378,6 @@ L.Map.WOPI = L.Handler.extend({
this._map.insertURL(msg.Values.url);
}
}
else if (msg.MessageId == 'Action_Paste') {
if (msg.Values && msg.Values.Mimetype && msg.Values.Data) {
var blob = new Blob(['paste mimetype=' + msg.Values.Mimetype + '\n', msg.Values.Data]);
this._map._socket.sendMessage(blob);
}
}
else if (msg.MessageId === 'Action_ShowBusy') {
if (msg.Values && msg.Values.Label) {
this._map.fire('showbusy', {label: msg.Values.Label});