fix: builds failing

This commit is contained in:
SethBurkart123
2025-06-12 16:59:21 +10:00
parent 66ff6e3468
commit 7462e6ab5d
3 changed files with 10 additions and 4 deletions
+3
View File
@@ -27,5 +27,8 @@ if (!mountPoint) {
}
InjectCustomIcons();
(async () => {
await initializeSettingsState();
renderSvelte(Settings, mountPoint, { standalone: true });
})();
+4 -1
View File
@@ -278,7 +278,10 @@
onChange={(value) => updatePluginSetting(plugin.pluginId, key, value)}
/>
{:else if setting.type === 'component'}
<svelte:component this={setting.component} />
{#if setting.component}
{@const Component = setting.component}
<Component />
{/if}
{/if}
</div>
</div>
+1 -1
View File
@@ -168,7 +168,7 @@ window.addEventListener("message", (event) => {
case "setState":
// Handle both function and object updates
if (payload.updateFn) {
const updateFn = eval(`(${payload.updateFn})`);
const updateFn = new Function('return ' + payload.updateFn)();
fiberInstance.setState(updateFn);
} else {
fiberInstance.setState(payload.updateObject);