mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
new extension manager
This commit is contained in:
Vendored
+2
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user