diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-18 06:59:10 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-18 06:59:10 +0000 |
commit | 57b75f4a037658c1122aa092d1775ac52036b2cf (patch) | |
tree | 078c8fdc85a6754d3799e62ab6a2ed77614b67f3 /javascript/hints.js | |
parent | f88169a9e74066892221b6c8c74c85afb7c1fe57 (diff) | |
download | stable-diffusion-webui-gfx803-57b75f4a037658c1122aa092d1775ac52036b2cf.tar.gz stable-diffusion-webui-gfx803-57b75f4a037658c1122aa092d1775ac52036b2cf.tar.bz2 stable-diffusion-webui-gfx803-57b75f4a037658c1122aa092d1775ac52036b2cf.zip |
eslint related file edits
Diffstat (limited to 'javascript/hints.js')
-rw-r--r-- | javascript/hints.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/hints.js b/javascript/hints.js index 477b7d80..88e550ef 100644 --- a/javascript/hints.js +++ b/javascript/hints.js @@ -1,6 +1,6 @@ // mouseover tooltips for various UI elements -titles = { +var titles = { "Sampling steps": "How many times to improve the generated image iteratively; higher values take longer; very low values can produce bad results", "Sampling method": "Which algorithm to use to produce the image", "GFPGAN": "Restore low quality faces using GFPGAN neural network", @@ -118,7 +118,7 @@ titles = { onUiUpdate(function() { gradioApp().querySelectorAll('span, button, select, p').forEach(function(span) { - if (span.title) return; // already has a title + if (span.title) return; // already has a title let tooltip = localization[titles[span.textContent]] || titles[span.textContent]; |