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); } }