diff --git a/script/buct-cource-helper.user.js b/script/buct-cource-helper.user.js index fc7709a..415cfec 100644 --- a/script/buct-cource-helper.user.js +++ b/script/buct-cource-helper.user.js @@ -85,7 +85,7 @@ answers.push(label.innerText.trim()); } } - return question + answers.map((s) => "- " + s.replaceAll("\t", "")).join("\n"); + return question + "\n\n" + answers.map((s) => "- " + s.replaceAll("\t", "")).join("\n"); } function copyToClipboard() { diff --git a/src/app/routers/question.ts b/src/app/routers/question.ts index e48222f..5eefea7 100644 --- a/src/app/routers/question.ts +++ b/src/app/routers/question.ts @@ -1,5 +1,5 @@ import router from "../router"; -import { coursePolls, deepSeekPolls } from "../data/polls"; +import { deepSeekPolls } from "../data/polls"; router.on("/question", async function (data, response) { const { question } = data.body; @@ -14,7 +14,6 @@ router.on("/question", async function (data, response) { } console.log("Received question", question); const polls = deepSeekPolls.value; - coursePolls.value = []; const pollData = { questionID: questionId, question: question,