mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
refactor: Remove unused DataWrapper class to clean up utils.js
This commit is contained in:
@@ -69,21 +69,6 @@ export function hideWidgetForGood(node, widget, suffix = "") {
|
||||
}
|
||||
}
|
||||
|
||||
// Wrapper class to handle 'two element array bug' in LiteGraph or comfyui
|
||||
export class DataWrapper {
|
||||
constructor(data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
getData() {
|
||||
return this.data;
|
||||
}
|
||||
|
||||
setData(data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
|
||||
// Function to get the appropriate loras widget based on ComfyUI version
|
||||
export async function getLorasWidgetModule() {
|
||||
return await dynamicImportByVersion("./loras_widget.js", "./legacy_loras_widget.js");
|
||||
|
||||
Reference in New Issue
Block a user