Allow Bandwidth's messages to be dismissed

This commit is contained in:
ManiacOfGitHub
2023-10-04 07:33:16 -04:00
committed by GitHub
parent 4d432a6232
commit 380517f276

View File

@@ -85,9 +85,14 @@
`${unescapeHTML("{{this}}")}`,
{{/each}}
]
bandwidthRaccoon.addEventListener("click", () =>
document.body.addEventListener("click", () =>
{
bandwidthRaccoonWrapper.classList.remove("speak");
})
bandwidthRaccoon.addEventListener("click", (event) =>
{
event.stopPropagation();
bandwidthRaccoonWrapper.classList.add("speak");
if (!randomSentences[i]) {
i = 0