Another round of bug fixes.

This commit is contained in:
Storm Dragon
2026-06-23 01:16:01 -04:00
parent 8ff316101e
commit 6cd3ec1601
3 changed files with 5 additions and 3 deletions
@@ -2,7 +2,7 @@
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=skald-git
pkgver=0.0.0.r1542.ge73eb21
pkgver=0.0.0.r1543.g8ff3161
pkgrel=1
pkgdesc='Audio-only hall-based conferencing server'
arch=('x86_64' 'aarch64')
+3 -2
View File
@@ -2681,8 +2681,9 @@ let chalkboardLocalTextPending = null;
let chalkboardText = '';
function getChalkboardEditor() {
return /** @type {HTMLTextAreaElement} */
(document.getElementById('chalkboard'));
return /** @type {HTMLTextAreaElement} */ (
document.getElementById('chalkboard')
);
}
function getChalkboardView() {
+1
View File
@@ -82,6 +82,7 @@ func TestChalkboardReadOnlyViewIsNotAnEditBox(t *testing.T) {
requireContains(t, html, `<pre id="chalkboard-view" tabindex="0" role="region" aria-labelledby="chalkboard-heading" hidden>`, "chalkboard view")
requireContains(t, css, "white-space: pre-wrap", "chalkboard view")
requireContains(t, css, "#chalkboard[hidden]", "chalkboard hidden state")
requireFunctionContains(t, js, "getChalkboardEditor", "return /** @type {HTMLTextAreaElement} */ (")
requireFunctionContains(t, js, "setChalkboardText", "view.textContent = text")
requireFunctionContains(t, js, "updateChalkboardAccess", "editor.hidden = !canEdit")
requireFunctionContains(t, js, "updateChalkboardAccess", "view.hidden = canEdit")