v8.0.2
This commit is contained in:
@@ -13,7 +13,7 @@ document.getElementById("commandExec").addEventListener("click", async () => {
|
||||
});
|
||||
|
||||
document.getElementById("weatherUeuse").addEventListener("click", async () => {
|
||||
const req = await fetch("/actions/weatherUeuse", {
|
||||
const req = await fetch("/actions/weather", {
|
||||
method: "POST",
|
||||
});
|
||||
|
||||
@@ -57,7 +57,7 @@ document.getElementById("ueuse").addEventListener("click", async () => {
|
||||
});
|
||||
|
||||
document.getElementById("api").addEventListener("click", async () => {
|
||||
const token = await (fetch("/actions/token", {
|
||||
const token = await (await fetch("/actions/token", {
|
||||
method: "GET",
|
||||
})).text();
|
||||
|
||||
@@ -68,7 +68,7 @@ document.getElementById("api").addEventListener("click", async () => {
|
||||
return;
|
||||
}
|
||||
|
||||
const body = prompt("body(JSON)", `{"token": ${token}}`).toLowerCase();
|
||||
const body = prompt("body(JSON)", `{"token": "${token}"}`).toLowerCase();
|
||||
|
||||
if (body === "") {
|
||||
alert("bodyが設定されていません。");
|
||||
|
||||
Reference in New Issue
Block a user