mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
js optimizations
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
/* global gradioApp, uiCurrentTab, onUiUpdate, get_uiCurrentTabContent */
|
||||
|
||||
const contextMenuInit = () => {
|
||||
let eventListenerApplied = false;
|
||||
const menuSpecs = new Map();
|
||||
@@ -137,4 +135,4 @@ const addContextMenuEventListener = initResponse[2];
|
||||
}());
|
||||
// End example Context Menu Items
|
||||
|
||||
onUiUpdate(() => addContextMenuEventListener());
|
||||
onAfterUiUpdate(() => addContextMenuEventListener());
|
||||
|
||||
Reference in New Issue
Block a user