You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Update outdated syntax in JavaScriptBridge doc
According to `JavaScriptBridge`, thus takes a Callable, not an object/string pair.
This commit is contained in:
committed by
Rémi Verschelde
parent
8f25cc2d13
commit
04480f196a
@@ -9,7 +9,7 @@
|
|||||||
[codeblock]
|
[codeblock]
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
var _my_js_callback = JavaScriptBridge.create_callback(self, "myCallback") # This reference must be kept
|
var _my_js_callback = JavaScriptBridge.create_callback(myCallback) # This reference must be kept
|
||||||
var console = JavaScriptBridge.get_interface("console")
|
var console = JavaScriptBridge.get_interface("console")
|
||||||
|
|
||||||
func _init():
|
func _init():
|
||||||
|
|||||||
Reference in New Issue
Block a user