InitialHTMLPopulate() fix wrong symbol

This commit is contained in:
ReznoRMichael 2021-02-15 23:28:50 +01:00
parent f2eba3fbda
commit cca1269f4a
2 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -1200,9 +1200,10 @@ function ObjectLength(object) {
*/
function InitialHTMLPopulate(divIdObj) {
PrefillHTML(divIdObj);
CurrentDataFalse();
PrefillHTML(divIdObj);
// Play Time
CheckPlayTime(divIdObj.intro, 0)
@ -1227,6 +1228,9 @@ function InitialHTMLPopulate(divIdObj) {
// Geo
CheckGeo(divIdObj.intro);
// Keep symbol False
CurrentDataFalse();
// First Hint Only
FillHTML(divIdObj.hints, "", HK.HINTS.fireballLevel.spoiler);
@ -1443,7 +1447,9 @@ function TranslateMapName(mapCode, dictionary = MAP) {
// window.InitialHTMLPopulate = InitialHTMLPopulate;
// Populate HTML at load (before img and css)
document.addEventListener("DOMContentLoaded", InitialHTMLPopulate(HK.DIV_ID));
document.addEventListener("DOMContentLoaded", () => {
InitialHTMLPopulate(HK.DIV_ID);
});
// Does an action when the save file location input text is clicked once (auto select & copy to clipboard)
document.getElementById("save-location-input").addEventListener("click", (e) => {