    } catch (e) {
                        flashError();
                        console.error(e);
                    } finally {
                        hideLoading();
                    }
                });
                const setupToggle = (element, configName, callback) => {
                    element.addEventListener('change', async () => {
                        const value = element.checked ? '1' : '0';
                        await run(`echo '${value}' > ${MODPATH}/config/${configName}`);
    