From 591e992839592d3037f31e6e0d33f7f7f19d0aa4 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 3 Oct 2024 19:11:15 +0200 Subject: [PATCH] Fix: use textContent instead of inntertext, fixes tests --- src/Logic/Actors/TitleHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/Actors/TitleHandler.ts b/src/Logic/Actors/TitleHandler.ts index 95d5d362e..aa26c61e2 100644 --- a/src/Logic/Actors/TitleHandler.ts +++ b/src/Logic/Actors/TitleHandler.ts @@ -33,7 +33,7 @@ export default class TitleHandler { const title = Utils.SubstituteKeys(titleUnsubbed, tags) const el = document.createElement("span") el.innerHTML = title - return el.innerText + " | " + defaultTitle + return el.textContent + " | " + defaultTitle }, [Locale.language]