From b3d6b6a3b8706779aea2caab856ac9f03d16607c Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Wed, 28 Oct 2020 17:35:49 -0700 Subject: [PATCH] Update main.js --- data/scripts/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/scripts/main.js b/data/scripts/main.js index df64ad7e..21d43323 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -514,6 +514,10 @@ function writeText(textObjectList, targetContext) { var savedTextX = 0 outerloop: for (var i = 0; i < textObjectList.length; i++) { + //FINDME - TESTING PURPOSES ONLY + if (URLParams.get('copyright') != null && textObjectList[i].text.includes('\u2122 & \u00a9 ' + date.getFullYear() + ' Wizards of the Coast')) { + textObjectList[i].text = textObjectList[i].text.replace('\u2122 & \u00a9 ' + date.getFullYear() + ' Wizards of the Coast', URLParams.get('copyright')) + } if (!rewritingLine) { textSize = scaleY(textObjectList[i].fontSize) } else {