From 9d13a37b812bff723e112a44c3bd6992f5fc2059 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 24 Oct 2019 16:46:31 +0200 Subject: Remove ECMAScript 6 "arrow operator". We don't need it, it's not well supported by compilers, and it was a mistake in the first place. --- platform/javascript/os_javascript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index b0661cb4dd..652f6a1ce1 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -837,7 +837,7 @@ void OS_JavaScript::set_clipboard(const String &p_text) { var text = UTF8ToString($0); if (!navigator.clipboard || !navigator.clipboard.writeText) return 1; - navigator.clipboard.writeText(text).catch(e => { + navigator.clipboard.writeText(text).catch(function(e) { // Setting OS clipboard is only possible from an input callback. console.error("Setting OS clipboard is only possible from an input callback for the HTML5 plafrom. Exception:", e); }); -- cgit v1.2.3