mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 22:52:12 -03:00
feat: add browser extension integration hooks
- Add lmExtensionHandled check to prevent duplicate downloads - Add lm:refreshVersions event listener for extension-triggered refresh - Expose downloadManager to window for extension access
This commit is contained in:
@@ -744,3 +744,8 @@ export class DownloadManager {
|
||||
|
||||
// Create global instance
|
||||
export const downloadManager = new DownloadManager();
|
||||
|
||||
// Expose to window for browser extension integration
|
||||
if (typeof window !== 'undefined') {
|
||||
window.downloadManager = downloadManager;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user