fix gallery, update js logging, add en caching

This commit is contained in:
Vladimir Mandic
2023-08-29 14:16:37 -04:00
parent 4bfa2ee877
commit 9e2e2b8b8f
25 changed files with 125 additions and 101 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ const contextMenuInit = () => {
});
}
function addContextMenuEventListener() {
async function addContextMenuEventListener() {
if (eventListenerApplied) return;
console.log('initContextMenu');
log('initContextMenu');
gradioApp().addEventListener('click', (e) => {
if (!e.isTrusted) return;
const oldMenu = gradioApp().querySelector('#context-menu');