update setup to deal with extensions preload

This commit is contained in:
Vladimir Mandic
2023-04-22 11:23:17 -04:00
parent cb465b12dd
commit 9a65233845
9 changed files with 38 additions and 18 deletions
+1
View File
@@ -61,6 +61,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;
}
+1
View File
@@ -1,6 +1,7 @@
window.onload = (function(){
window.addEventListener('drop', e => {
const target = e.composedPath()[0];
if (!target.placeholder) return;
const idx = selected_gallery_index();
if (target.placeholder.indexOf("Prompt") == -1) return;