mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-22 23:17:26 -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])
|
||||
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])
|
||||
return ERR_METHOD_NOT_FOUND
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue