Ironwood RPG - Pancake-Scripts

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

< Feedback on Ironwood RPG - Pancake-Scripts

Review: OK - script works, but has bugs

§
Posted: 2025-05-13

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);
}

Post reply

Sign in to post a reply.