Show HTML pages in a task view beside the transcript
This commit is contained in:
@@ -34,6 +34,10 @@ final class Forwards {
|
||||
return c.url
|
||||
}
|
||||
|
||||
func name(_ taskId: String, _ port: Int) -> String? {
|
||||
localPorts.keys.first { $0.taskId == taskId && $0.port == port }?.name
|
||||
}
|
||||
|
||||
func load(_ api: API, _ taskId: String) async {
|
||||
do {
|
||||
set(taskId, try await api.client.listPreviews(path: .init(taskId: taskId)).ok.body.json)
|
||||
|
||||
Reference in New Issue
Block a user