new extension manager

This commit is contained in:
Vladimir Mandic
2023-05-10 15:12:02 -04:00
parent aad2a53379
commit c5df80197e
27 changed files with 2959 additions and 2996 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ function dropReplaceImage(imgWrap, files) {
window.document.addEventListener('dragover', (e) => {
const target = e.composedPath()[0];
const imgWrap = target.closest('[data-testid="image"]');
if (!imgWrap && target.placeholder && target.placeholder.indexOf('Prompt') == -1) return;
if (!imgWrap && target.placeholder && target.placeholder.indexOf('Prompt') === -1) return;
e.stopPropagation();
e.preventDefault();
e.dataTransfer.dropEffect = 'copy';
@@ -56,7 +56,7 @@ window.document.addEventListener('dragover', (e) => {
window.document.addEventListener('drop', (e) => {
const target = e.composedPath()[0];
if (!target.placeholder) return;
if (target.placeholder.indexOf('Prompt') == -1) return;
if (target.placeholder.indexOf('Prompt') === -1) return;
const imgWrap = target.closest('[data-testid="image"]');
if (!imgWrap) return;
e.stopPropagation();