Merge pull request #222 from ManiacOfGitHub/patch-1

Allow Bandwidth's messages to be dismissed
This commit is contained in:
ash
2023-10-05 04:43:42 +00:00
committed by GitHub

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