Godot Version
4.3
Question
Hello everyone,
I’m trying to send a message to the parent window from the iframe of my exported godot project. A certain AI told me, that I could use JavascriptBridge to postMessage the String up to the parent window, but the eventListener there isn’t receiving anything and I don’t trust chatGPT with gdscript much.
Does anyone know if it’s this piece of code in the godot project or the event Listener that’s not working?
func onRoomEntered():
print("Yo, you entered the room:" + roomname)
JavaScriptBridge.eval("window.postMessage('" + roomname + "', '*');")
Thanks in advance