From 5a7f2d16dfed15dc8bfefc507abe3866f205af98 Mon Sep 17 00:00:00 2001
From: Přemysl Eric Janouch <p@janouch.name>
Date: Wed, 21 Sep 2022 06:23:41 +0200
Subject: xP: clean up DOM attributes

---
 xP/public/xP.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'xP')

diff --git a/xP/public/xP.js b/xP/public/xP.js
index 144647e..cbc37d7 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -478,7 +478,7 @@ let Content = {
 			style.color = palette[fg]
 		if (bg >= 0)
 			style.backgroundColor = palette[bg]
-		if (style)
+		for (const _ in style)
 			return style
 	},
 
-- 
cgit v1.2.3-70-g09d2