From 1237b9cc5ff9894342fd7c369c7d08243c8c016b Mon Sep 17 00:00:00 2001 From: James Lyne Date: Fri, 12 Nov 2021 00:23:08 +0000 Subject: [PATCH] Use @types/dynmap where possible (Closes #224) --- src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index f614ab4..a21118e 100644 --- a/src/util.ts +++ b/src/util.ts @@ -208,5 +208,5 @@ const decodeTextarea = document.createElement('textarea'); export const decodeHTMLEntities = (text: string) => { decodeTextarea.innerHTML = text; - return decodeTextarea.textContent; + return decodeTextarea.textContent || ''; }