Ironwood RPG - Pancake-Scripts

A collection of scripts to enhance Ironwood RPG - https://github.com/Boldy97/ironwood-scripts

< Feedback op Ironwood RPG - Pancake-Scripts

Recensie: Redelijk - het script werkt, maar bevat bugs

§
Geplaatst: 13-05-2025

Enjoying the script but there is a bug/error when using it on Microsoft Edge. There is an error during the config key look up where the Key is "undefined". This causes the script to not run properly and nothing visually changes.

Original code

async function initialise() {
    configs = await configurationStore.load();
    for(const key in configs) {
        configs[key] = JSON.parse(configs[key]);
    }
    initialised.resolve(exports);
}

Edited code:

async function initialise() {
    configs = await configurationStore.load();
    for(const key in configs) {
        if(key !== "undefined") {
            configs[key] = JSON.parse(configs[key]);
        }
    }
    initialised.resolve(exports);
}

Reactie plaatsen

Log in om antwoord te geven.