Update outdated syntax in `JavaScriptBridge` doc

According to `JavaScriptBridge`, thus takes a Callable, not an object/string pair.

(cherry picked from commit 04480f196a)
This commit is contained in:
PoolloverNathan 2023-03-29 23:50:32 -04:00 committed by Yuri Sizov
parent 3c2e30b319
commit e72e24b3cc
1 changed files with 1 additions and 1 deletions

View File

@ -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():