mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix: builds failing
This commit is contained in:
@@ -27,5 +27,8 @@ if (!mountPoint) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
InjectCustomIcons();
|
InjectCustomIcons();
|
||||||
|
|
||||||
|
(async () => {
|
||||||
await initializeSettingsState();
|
await initializeSettingsState();
|
||||||
renderSvelte(Settings, mountPoint, { standalone: true });
|
renderSvelte(Settings, mountPoint, { standalone: true });
|
||||||
|
})();
|
||||||
|
|||||||
@@ -278,7 +278,10 @@
|
|||||||
onChange={(value) => updatePluginSetting(plugin.pluginId, key, value)}
|
onChange={(value) => updatePluginSetting(plugin.pluginId, key, value)}
|
||||||
/>
|
/>
|
||||||
{:else if setting.type === 'component'}
|
{:else if setting.type === 'component'}
|
||||||
<svelte:component this={setting.component} />
|
{#if setting.component}
|
||||||
|
{@const Component = setting.component}
|
||||||
|
<Component />
|
||||||
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -168,7 +168,7 @@ window.addEventListener("message", (event) => {
|
|||||||
case "setState":
|
case "setState":
|
||||||
// Handle both function and object updates
|
// Handle both function and object updates
|
||||||
if (payload.updateFn) {
|
if (payload.updateFn) {
|
||||||
const updateFn = eval(`(${payload.updateFn})`);
|
const updateFn = new Function('return ' + payload.updateFn)();
|
||||||
fiberInstance.setState(updateFn);
|
fiberInstance.setState(updateFn);
|
||||||
} else {
|
} else {
|
||||||
fiberInstance.setState(payload.updateObject);
|
fiberInstance.setState(payload.updateObject);
|
||||||
|
|||||||
Reference in New Issue
Block a user