Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/civitai_browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ app.registerExtension({

// ---- 初始化 ----
try {
const configRes = await api.fetchApi('/civitai_recipe_finder/get_config');
const configRes = await api.fetchApi('/civitai_utils/get_config');
const config = await configRes.json();
browserState.network = config.network_choice || 'com';

Expand Down
4 changes: 2 additions & 2 deletions js/global_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ app.registerExtension({
],
async onChange(value) {
try {
await api.fetchApi('/civitai_recipe_finder/set_config', {
await api.fetchApi('/civitai_utils/set_config', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ network_choice: value })
Expand Down Expand Up @@ -309,7 +309,7 @@ app.registerExtension({

// 从后端加载网络设置
try {
const response = await api.fetchApi('/civitai_recipe_finder/get_config');
const response = await api.fetchApi('/civitai_utils/get_config');
const config = await response.json();
if (config.network_choice && networkSetting) {
networkSetting.value = config.network_choice;
Expand Down