Merge pull request #15 from daniel-lewis-ab/main
Changed REST call to use api.fetchApi rather than fetch
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user