From 3782c68bca45375b5903b95a91fd37bf040233ff Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sat, 29 Aug 2020 15:21:41 -0400 Subject: [PATCH] fix orphaned span --- src/npc/generate/newSlaveIntro.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/npc/generate/newSlaveIntro.js b/src/npc/generate/newSlaveIntro.js index 96f4daa0f28..b51a0388d5f 100644 --- a/src/npc/generate/newSlaveIntro.js +++ b/src/npc/generate/newSlaveIntro.js @@ -817,7 +817,6 @@ App.UI.newSlaveIntro = function(slave) { * @param {string} [param0.note] */ function choice({introText, linkName, result, requirements, note} = {}) { - let span = document.createElement("span"); if (introText) { App.UI.DOM.appendNewElement("span", p, introText, "note"); } @@ -825,7 +824,7 @@ App.UI.newSlaveIntro = function(slave) { if (requirements === false) { return; } - + let span = document.createElement("span"); span.append( App.UI.DOM.link( linkName, -- GitLab