mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
open_link through send_command
This commit is contained in:
parent
01ee2b08e1
commit
27df0bf8a9
2 changed files with 5 additions and 1 deletions
|
@ -37,6 +37,10 @@ func _execute_function(command: Command) -> Variant:
|
||||||
var url = Url.join(gate_events.current_gate_url, command.args[0])
|
var url = Url.join(gate_events.current_gate_url, command.args[0])
|
||||||
gate_events.open_gate_emit(url)
|
gate_events.open_gate_emit(url)
|
||||||
|
|
||||||
|
"open_link":
|
||||||
|
if wrong_args_count(command, 1): return ERR_INVALID_PARAMETER
|
||||||
|
OS.shell_open(command.args[0])
|
||||||
|
|
||||||
_:
|
_:
|
||||||
Debug.logerr("Command %s not implemented" % [command.name])
|
Debug.logerr("Command %s not implemented" % [command.name])
|
||||||
return ERR_METHOD_NOT_FOUND
|
return ERR_METHOD_NOT_FOUND
|
||||||
|
|
2
godot
2
godot
|
@ -1 +1 @@
|
||||||
Subproject commit 8da1c840ed391e731c5480e8055fcc8367da8da0
|
Subproject commit 49ad7a03ac239a56472c806055084afdf0adbd3d
|
Loading…
Add table
Add a link
Reference in a new issue