Fix JS loading - add WEB_DIRECTORY and absolute imports
- Added WEB_DIRECTORY = "./web" to __init__.py (required for ComfyUI to find JS) - Added __all__ export - Changed JS imports to absolute paths (/scripts/app.js) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -137,3 +137,6 @@ NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"ListVariables": "List Variables",
|
||||
"ClearVariables": "Clear Variables",
|
||||
}
|
||||
|
||||
WEB_DIRECTORY = "./web"
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
import { ComfyWidgets } from "../../scripts/widgets.js";
|
||||
import { app } from "/scripts/app.js";
|
||||
import { ComfyWidgets } from "/scripts/widgets.js";
|
||||
|
||||
function displayText(nodeType, nodeData, appInstance) {
|
||||
const onExecutedOriginal = nodeType.prototype.onExecuted;
|
||||
|
||||
Reference in New Issue
Block a user