[web] fix clipboard.getData (flutter/engine#17544)

* remove the fake reply for paste message. the clipboard.dart will reply with the content of the clipboard

* also remove the fake answer for copy
This commit is contained in:
Nurhan Turgut
2020-04-07 11:34:33 -07:00
committed by GitHub
parent fee9895d51
commit c30986c146

View File

@@ -392,11 +392,9 @@ class EngineWindow extends ui.Window {
return;
case 'Clipboard.setData':
ClipboardMessageHandler().setDataMethodCall(decoded, callback);
_replyToPlatformMessage(callback, codec.encodeSuccessEnvelope(true));
return;
case 'Clipboard.getData':
ClipboardMessageHandler().getDataMethodCall(callback);
_replyToPlatformMessage(callback, codec.encodeSuccessEnvelope(true));
return;
}
break;