Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 394ac6b

Browse files
author
Nurhan Turgut
authored
[web] fix clipboard.getData (#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
1 parent ac574e1 commit 394ac6b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/web_ui/lib/src/engine/window.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,9 @@ class EngineWindow extends ui.Window {
392392
return;
393393
case 'Clipboard.setData':
394394
ClipboardMessageHandler().setDataMethodCall(decoded, callback);
395-
_replyToPlatformMessage(callback, codec.encodeSuccessEnvelope(true));
396395
return;
397396
case 'Clipboard.getData':
398397
ClipboardMessageHandler().getDataMethodCall(callback);
399-
_replyToPlatformMessage(callback, codec.encodeSuccessEnvelope(true));
400398
return;
401399
}
402400
break;

0 commit comments

Comments
 (0)