web & api: rename stream to tunnel

- updated the endpoint to /tunnel
- updated status to tunnel
- fixed one incorrectly named error in web
This commit is contained in:
wukko
2024-09-05 00:26:48 +06:00
parent 49460bd16d
commit fff1c6c7a6
13 changed files with 99 additions and 99 deletions

View File

@ -87,10 +87,10 @@
return downloadFile(response.url);
}
if (response.status === "stream") {
if (response.status === "tunnel") {
changeDownloadButton("check");
const probeResult = await API.probeCobaltStream(response.url);
const probeResult = await API.probeCobaltTunnel(response.url);
if (probeResult === 200) {
changeDownloadButton("done");
@ -101,7 +101,7 @@
return createDialog({
...defaultErrorPopup,
bodyText: $t("error.stream.failed_probe"),
bodyText: $t("error.tunnel.probe"),
});
}
}