better readability

This commit is contained in:
Junsred
2022-04-29 00:17:16 +03:00
parent c0a77a01fb
commit 0c077da2bb

View File

@@ -419,9 +419,9 @@ class HTML5Window
private function handleCutOrCopyEvent(event:ClipboardEvent):Void
{
var text = "";
if (Clipboard.text != null) {
text = Clipboard.text;
var text = Clipboard.text;
if (text == null) {
text = "";
}
event.clipboardData.setData("text/plain", text);
if (event.cancelable) event.preventDefault();