diff --git a/examples/menu/menu.gd b/examples/menu/menu.gd index 51ef5c8..33d9535 100644 --- a/examples/menu/menu.gd +++ b/examples/menu/menu.gd @@ -161,7 +161,7 @@ func _on_Terminal_key_pressed(data: String, event: InputEventKey) -> void: scene.queue_free() "Exit": if OS.has_feature("JavaScript"): - JavaScript.eval("window.location.reload()") + JavaScript.eval("window.history.back() || window.close()") get_tree().quit()