Explorar o código

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.
Fabio Alessandrelli %!s(int64=5) %!d(string=hai) anos
pai
achega
9d13a37b81
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/javascript/os_javascript.cpp

+ 1 - 1
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);
 		});