diff --git a/web-plugin/index.js b/web-plugin/index.js index d8915a3..f714544 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -457,6 +457,17 @@ const ext = { // } }); + if (this.native_mode) { + // console.log("native mode", window, window.app); + try { + await app.ui.settings.setSettingValueAsync('Comfy.UseNewMenu', 'Top') + await app.ui.settings.setSettingValueAsync('Comfy.Sidebar.Size', 'small') + await app.ui.settings.setSettingValueAsync('Comfy.Sidebar.Location', 'right') + } catch (error) { + console.error("Error setting validation to false", error); + } + } + app.graph.onAfterChange = ((originalFunction) => async function () { const prompt = await app.graphToPrompt();