mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 09:19:54 +00:00
small fix
This commit is contained in:
@@ -281,7 +281,7 @@
|
|||||||
if (!only || only === "text") {
|
if (!only || only === "text") {
|
||||||
let text = this.#text;
|
let text = this.#text;
|
||||||
|
|
||||||
if (this.#tags.includes("json")) {
|
if (text && this.#tags.includes("json")) {
|
||||||
text = `\`\`\`json\n${text}\n\`\`\``;
|
text = `\`\`\`json\n${text}\n\`\`\``;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user