Merge pull request #15 from daniel-lewis-ab/main

Changed REST call to use api.fetchApi rather than fetch
This commit is contained in:
BilboX
2024-05-14 15:21:37 -10:00
committed by GitHub
+2 -1
View File
@@ -1,4 +1,5 @@
import { app } from "../../scripts/app.js";
import { api } from "../../scripts/api.js"
// Inverts the scrolling of context menus
const ActivateNodeType = "BilboXPhotoPrompt"
@@ -183,7 +184,7 @@ app.registerExtension({
}
installCss()
fetch('/extensions/bilbox-comfyui/PromptGeek/photo_data.json')
api.fetchApi('/extensions/bilbox-comfyui/PromptGeek/photo_data.json')
.then((response) => response.json())
.then((json) => window.bilbox_promptgeek_data = json);