Browse Source

fix: inproper fetch error message

pull/113/head
Dr.Lt.Data 1 year ago
parent
commit
263ccec476
  1. 2
      __init__.py
  2. 2
      js/comfyui-manager.js

2
__init__.py

@ -55,7 +55,7 @@ sys.path.append('../..')
from torchvision.datasets.utils import download_url from torchvision.datasets.utils import download_url
# ensure .js # ensure .js
print("### Loading: ComfyUI-Manager (V0.28.3)") print("### Loading: ComfyUI-Manager (V0.28.4)")
comfy_ui_required_revision = 1240 comfy_ui_required_revision = 1240
comfy_ui_revision = "Unknown" comfy_ui_revision = "Unknown"

2
js/comfyui-manager.js vendored

@ -215,7 +215,7 @@ async function fetchUpdates(update_check_checkbox) {
const response = await api.fetchApi(`/customnode/fetch_updates?mode=${mode}`); const response = await api.fetchApi(`/customnode/fetch_updates?mode=${mode}`);
if(response.status != 200) { if(response.status != 200 || response.status != 201) {
app.ui.dialog.show('Failed to fetch updates.'); app.ui.dialog.show('Failed to fetch updates.');
app.ui.dialog.element.style.zIndex = 9999; app.ui.dialog.element.style.zIndex = 9999;
return false; return false;

Loading…
Cancel
Save