Skip to content

Commit 33a2c06

Browse files
authored
refacto: add ':not([aria-busy=true])'
1 parent 182ab38 commit 33a2c06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sqlpage/sqlpage.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
const nonce = document.currentScript.nonce;
55

66
function sqlpage_embed() {
7-
for (const c of document.querySelectorAll("[data-embed]")) {
8-
if (c.ariaBusy === "true") continue;
7+
for (const c of document.querySelectorAll("[data-embed]:not([aria-busy=true])")) {
98
c.ariaBusy = true;
109
let url;
1110
try {
@@ -211,4 +210,4 @@ add_init_fn(sqlpage_table);
211210
add_init_fn(sqlpage_map);
212211
add_init_fn(sqlpage_embed);
213212
add_init_fn(sqlpage_form);
214-
add_init_fn(load_scripts);
213+
add_init_fn(load_scripts);

0 commit comments

Comments
 (0)