Update outdated syntax in JavaScriptBridge doc
According to `JavaScriptBridge`, thus takes a Callable, not an object/string pair.
This commit is contained in:
parent
8f25cc2d13
commit
04480f196a
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
|||
[codeblock]
|
||||
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")
|
||||
|
||||
func _init():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue