Skip to content

Commit

Permalink
remove some unnecessary logging to javascript console
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Jan 20, 2023
1 parent b165e34 commit 6c7a50d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions javascript/hires_fix.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

function setInactive(elem, inactive){
console.log(elem)
if(inactive){
elem.classList.add('inactive')
} else{
Expand All @@ -9,8 +8,6 @@ function setInactive(elem, inactive){
}

function onCalcResolutionHires(enable, width, height, hr_scale, hr_resize_x, hr_resize_y){
console.log(enable, width, height, hr_scale, hr_resize_x, hr_resize_y)

hrUpscaleBy = gradioApp().getElementById('txt2img_hr_scale')
hrResizeX = gradioApp().getElementById('txt2img_hr_resize_x')
hrResizeY = gradioApp().getElementById('txt2img_hr_resize_y')
Expand Down
2 changes: 1 addition & 1 deletion modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def open_folder(f):
generation_info_button = gr.Button(visible=False, elem_id=f"{tabname}_generation_info_button")
generation_info_button.click(
fn=update_generation_info,
_js="function(x, y, z){ console.log(x, y, z); return [x, y, selected_gallery_index()] }",
_js="function(x, y, z){ return [x, y, selected_gallery_index()] }",
inputs=[generation_info, html_info, html_info],
outputs=[html_info, html_info],
)
Expand Down

0 comments on commit 6c7a50d

Please sign in to comment.