summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-24 20:48:50 +0200
committerGitHub <noreply@github.com>2019-10-24 20:48:50 +0200
commitea901b263cbf53d37c4c53b78e2ddb6434b1d183 (patch)
tree8ed3c7945fde188965b565dc62be80d3dac0f90c /platform
parent40a25c1e86898ed9942e3f61dc922e755c8e4e21 (diff)
parent9d13a37b812bff723e112a44c3bd6992f5fc2059 (diff)
Merge pull request #33036 from Faless/js/no_ecma6
Remove ECMAScript 6 "arrow operator".
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/os_javascript.cpp2
1 files changed, 1 insertions, 1 deletions
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);
});