Ironwood RPG - Pancake-Scripts

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

< 脚本 Ironwood RPG - Pancake-Scripts 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于: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);
}

发布留言

登录以发布留言。