From 3a3b93d56422e239020c2852113fd9fd205b766e Mon Sep 17 00:00:00 2001 From: karrix Date: Fri, 11 Oct 2024 17:15:28 +0800 Subject: [PATCH] tweak: modify the local storage of the dock --- web-plugin/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web-plugin/index.js b/web-plugin/index.js index 8650c9a..7560704 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -469,10 +469,8 @@ const ext = { "Comfy.Sidebar.Location", "right" ); - await app.ui.settings.setSettingValueAsync( - "Comfy.MenuPosition.Docked", - true - ); + localStorage.setItem("Comfy.MenuPosition.Docked", "true"); + console.log("native mode manmanman"); } catch (error) { console.error("Error setting validation to false", error); }