From cb9154e781793a85ec4e0acd0a708549d7f3b99b Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 16 May 2021 20:08:09 -0400 Subject: [PATCH] don't print embedded html --- src/pregmod/eliteBreedingExam.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pregmod/eliteBreedingExam.js b/src/pregmod/eliteBreedingExam.js index 1db30d9ce68..224be73fefd 100644 --- a/src/pregmod/eliteBreedingExam.js +++ b/src/pregmod/eliteBreedingExam.js @@ -1,4 +1,5 @@ globalThis.eliteBreedingExam = function(slave = null) { + const frag = new DocumentFragment(); const eliteAngered = V.failedElite > 100; const SlaveProfessionalismEstablished = V.arcologies[0].FSSlaveProfessionalism > 20; const preferYounger = V.arcologies[0].FSYouthPreferentialist > 20; @@ -243,6 +244,6 @@ globalThis.eliteBreedingExam = function(slave = null) { } cashX(-cost, "capEx"); } - - return r.map(t => `<div>${t}</div>`).join(""); + App.Events.addNode(frag, r, "div"); + return frag; }; -- GitLab