summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/wwwroot
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-09 16:05:34 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-09 16:05:34 -0400
commitae7567674d480fbccf25b685d4ddceef01efcdb4 (patch)
tree506d56843e647783a888bf65ce5bd721f798d684 /src/SMAPI.Web/wwwroot
parent07d07c79e00906f826cb6d3e7532f4a2ad2099ba (diff)
downloadSMAPI-ae7567674d480fbccf25b685d4ddceef01efcdb4.tar.gz
SMAPI-ae7567674d480fbccf25b685d4ddceef01efcdb4.tar.bz2
SMAPI-ae7567674d480fbccf25b685d4ddceef01efcdb4.zip
restore data element unloading
Diffstat (limited to 'src/SMAPI.Web/wwwroot')
-rw-r--r--src/SMAPI.Web/wwwroot/Content/js/log-parser.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/log-parser.js b/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
index 5a12a521..59c6026c 100644
--- a/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
+++ b/src/SMAPI.Web/wwwroot/Content/js/log-parser.js
@@ -166,6 +166,7 @@ smapi.logParser = function (state) {
{
const dataElement = document.querySelector(state.dataElement);
state.data = JSON.parse(dataElement.textContent.trim());
+ dataElement.remove(); // let browser unload the data element since we won't need it anymore
}
// preprocess data for display