From e858ff78daf767de88e9a49f3bea726f9c72827c Mon Sep 17 00:00:00 2001 From: sukuwc Date: Fri, 7 Nov 2025 14:50:14 +0100 Subject: [PATCH] SUKU rejecting overwrite when config type does not match --- src/routes/EditorLayout.svelte | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/routes/EditorLayout.svelte b/src/routes/EditorLayout.svelte index c6af0b9..e06b647 100644 --- a/src/routes/EditorLayout.svelte +++ b/src/routes/EditorLayout.svelte @@ -208,6 +208,17 @@ version: editorConfig.version, configType: editorConfig.configType, }; + + if (newConfig.type !== config.type) { + parentIframeCommunication({ + windowPostMessageName: "sendLogMessage", + dataForParent: { + type: "fail", + message: `Config type does not match!`, + }, + }); + return; + } cm?.saveConfig(newConfig, false); } }