From 2d64bccc508e20a256e2c881311938a42ac165a6 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 8 Aug 2023 21:05:09 +0100 Subject: [PATCH] feat: enable bs tooltips for all elements with title attr --- src/ts/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/app.ts b/src/ts/app.ts index 150ec4b..0c6c102 100644 --- a/src/ts/app.ts +++ b/src/ts/app.ts @@ -16,7 +16,7 @@ declare const katex: any; block.innerHTML = content; }); - document.querySelectorAll("img[title]").forEach((img) => { + document.querySelectorAll("[title]").forEach((img) => { img.setAttribute("data-bs-toggle", "tooltip"); img.setAttribute("data-bs-placement", "bottom"); img.setAttribute("data-bs-html", "true");