aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/imageParams.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-18 07:02:17 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-05-18 07:02:17 +0000
commitc08f229318cc3fbcad3aee7d5ebbb94fb68f6f34 (patch)
treedb13845baa243c8bff4367cab040486e55ea81e3 /javascript/imageParams.js
parent1ceb82bc74ace8958767ae7d844bef0fb4bf0e9b (diff)
parent57b75f4a037658c1122aa092d1775ac52036b2cf (diff)
downloadstable-diffusion-webui-gfx803-c08f229318cc3fbcad3aee7d5ebbb94fb68f6f34.tar.gz
stable-diffusion-webui-gfx803-c08f229318cc3fbcad3aee7d5ebbb94fb68f6f34.tar.bz2
stable-diffusion-webui-gfx803-c08f229318cc3fbcad3aee7d5ebbb94fb68f6f34.zip
Merge branch 'eslint' into dev
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'));
}