Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
minwidth0px committed Aug 7, 2024
1 parent 5df7e1f commit 6bbd47b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/client.mts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ getBtn.addEventListener( "click" , async () => {
const remoteAddr = getInput.value;
networkService.remoteAddr = remoteAddr;
console.log({ input: remoteAddr });
const text = await client.Http.fetch([remoteAddr, "test"].join("/")).then(r => r.text());
const text = await client.Http.fetch(remoteAddr).then(r => r.text());
const output = document.getElementById('output');
console.log({ text });
if (output !== null) {
Expand Down
3 changes: 1 addition & 2 deletions web/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3319,9 +3319,8 @@ var getBtn = document.getElementById('get-btn');
var getInput = document.getElementById('get-input')
getBtn.addEventListener("click", async () => {
const remoteAddr = getInput.value;
networkService_default.remoteAddr = remoteAddr;
console.log({ input: remoteAddr });
const text = await client.Http.fetch([remoteAddr, "test"].join("/")).then((r) => r.text());
const text = await client.Http.fetch(remoteAddr).then((r) => r.text());
const output = document.getElementById("output");
console.log({ text });
if (output !== null) {
Expand Down

0 comments on commit 6bbd47b

Please sign in to comment.