mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Bounce back before script execution
This commit is contained in:
parent
60accbe1d1
commit
dce4c2edfd
1 changed files with 2 additions and 3 deletions
|
|
@ -45,6 +45,8 @@ final class RunJSViewModel: ObservableObject, Identifiable, @unchecked Sendable
|
|||
self.scriptName = displayName
|
||||
}
|
||||
|
||||
_ = resumeTargetApp()
|
||||
|
||||
guard let scriptContent = String(data: data, encoding: .utf8) else {
|
||||
throw CocoaError(.fileReadCorruptFile)
|
||||
}
|
||||
|
|
@ -65,9 +67,6 @@ final class RunJSViewModel: ObservableObject, Identifiable, @unchecked Sendable
|
|||
|
||||
let response = handleJSContextSendDebugCommand(self.context, commandStr, self.debugProxy) ?? ""
|
||||
|
||||
if commandStr.hasPrefix("vAttach"), response.hasPrefix("T") {
|
||||
self.resumeTargetApp()
|
||||
}
|
||||
|
||||
return response
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue