mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
refactoring
This commit is contained in:
parent
dacd56b82f
commit
7d3efc3d15
5 changed files with 56 additions and 68 deletions
|
@ -311,7 +311,7 @@ func parseMessage(msg []byte) {
|
|||
}
|
||||
|
||||
switch iMsg.Type {
|
||||
case "NMHGetOpenPorts":
|
||||
case "getPorts":
|
||||
|
||||
// Get open ports
|
||||
openPorts, err := getOpenPorts()
|
||||
|
@ -320,7 +320,7 @@ func parseMessage(msg []byte) {
|
|||
} else {
|
||||
oMsg.Response = openPorts
|
||||
}
|
||||
case "NMHStartApplication":
|
||||
case "launchApp":
|
||||
// Start application
|
||||
pid, err := startApplication()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue