aboutsummaryrefslogtreecommitdiff
path: root/javascript/imageParams.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-21 17:37:09 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-05-21 17:37:09 +0300
commit1f3182924ba8e70d0e0fc3ed270782f324376ba3 (patch)
tree27a9e5167e5b981dfe56f5084ea8e1e8743f3fc0 /javascript/imageParams.js
parent89f9faa63388756314e8a1d96cf86bf5e0663045 (diff)
parentfdaf0147b6d2a5f599464bb7c65817ef5832eff1 (diff)
Merge branch 'dev' into release_candidate
Diffstat (limited to 'javascript/imageParams.js')
-rw-r--r--javascript/imageParams.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/imageParams.js b/javascript/imageParams.js
index 64aee93b..057e2d39 100644
--- a/javascript/imageParams.js
+++ b/javascript/imageParams.js
@@ -1,4 +1,4 @@
-window.onload = (function(){
+window.onload = (function() {
window.addEventListener('drop', e => {
const target = e.composedPath()[0];
if (target.placeholder.indexOf("Prompt") == -1) return;
@@ -10,7 +10,7 @@ window.onload = (function(){
const imgParent = gradioApp().getElementById(prompt_target);
const files = e.dataTransfer.files;
const fileInput = imgParent.querySelector('input[type="file"]');
- if ( fileInput ) {
+ if (fileInput) {
fileInput.files = files;
fileInput.dispatchEvent(new Event('change'));
}