From e4e90db5c59799018dc0458278d0823ba87b800c Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 24 Jun 2026 21:56:35 -0400 Subject: [PATCH] Repaired unsafe assignment for firefox --- firefox/dashboard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/firefox/dashboard.js b/firefox/dashboard.js index 385bd3d..8da23d2 100644 --- a/firefox/dashboard.js +++ b/firefox/dashboard.js @@ -77,7 +77,10 @@ function toast(msg, icon) { const wrap = document.getElementById("toasts"); const el = document.createElement("div"); el.className = "toast"; - el.innerHTML = iconSvg(SVG[icon] || SVG.check) + `${msg}`; + el.innerHTML = iconSvg(SVG[icon] || SVG.check); + const span = document.createElement("span"); + span.textContent = msg; + el.appendChild(span); wrap.appendChild(el); setTimeout(() => { el.style.transition = "opacity .3s, transform .3s"; el.style.opacity = "0"; el.style.transform = "translateX(20px)"; }, 3400); setTimeout(() => el.remove(), 3800);