js optimizations

This commit is contained in:
Vladimir Mandic
2023-06-05 14:25:57 -04:00
parent c52fb69dde
commit efbe364f7d
30 changed files with 697 additions and 70 deletions
+1 -3
View File
@@ -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());