aboutsummaryrefslogtreecommitdiff
path: root/javascript/imageParams.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-06-09 22:48:18 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-06-09 22:48:18 +0300
commit3b11f17a374520e493e120e7f47443acd97393c8 (patch)
tree743d96990f646fb49ff377a67849c288c31e177e /javascript/imageParams.js
parentbaf6946e06249c5af9851c60171692c44ef633e0 (diff)
parent59419bd64a1581caccaac04dceb66c1c069a2db1 (diff)
Merge branch 'dev' into release_candidate
Diffstat (limited to 'javascript/imageParams.js')
-rw-r--r--javascript/imageParams.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/javascript/imageParams.js b/javascript/imageParams.js
deleted file mode 100644
index 057e2d39..00000000
--- a/javascript/imageParams.js
+++ /dev/null
@@ -1,18 +0,0 @@
-window.onload = (function() {
- window.addEventListener('drop', e => {
- const target = e.composedPath()[0];
- if (target.placeholder.indexOf("Prompt") == -1) return;
-
- let prompt_target = get_tab_index('tabs') == 1 ? "img2img_prompt_image" : "txt2img_prompt_image";
-
- e.stopPropagation();
- e.preventDefault();
- const imgParent = gradioApp().getElementById(prompt_target);
- const files = e.dataTransfer.files;
- const fileInput = imgParent.querySelector('input[type="file"]');
- if (fileInput) {
- fileInput.files = files;
- fileInput.dispatchEvent(new Event('change'));
- }
- });
-});