From 5101f9a5928e2b638803eced049bebc7638d9a69 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Tue, 24 Dec 2019 16:26:48 -0800 Subject: [PATCH] Update main.js --- data/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index 4ee9810f..7f3ac3b6 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -954,7 +954,7 @@ function inputCardNameTextImport(cardName) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { - var importCardTextResponse = this.responseText; + var importCardTextResponse = this.responseText.split('{"object":"card"')[1].split('{"object":"related_card"')[0]; importText(beforeAfter(importCardTextResponse, '"name":"', '",'), "Title"); importText(beforeAfter(importCardTextResponse, '"type_line":"', '",'), "Type"); importText(beforeAfter(importCardTextResponse, '"oracle_text":"', '",').replace(/\\n/g, "{line}"), "Rules Text");