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
commit 1b53b7718f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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