Skip to content

Commit

Permalink
fix screenshot limit input change
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewthe2 committed May 20, 2021
1 parent c302f50 commit df0d877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ function initSetImageResize({isResizeScreenshot, screenshotMaxWidth, screenshotM
screenshotMaxHeightInput.value = screenshotMaxHeight;
}
function changeScreenshotMaxWidth(input) {
resizeScreenshotMaxWidth = parseInt(screenshotMaxWidth, 10);
resizeScreenshotMaxWidth = parseInt(input.value, 10);
eel.update_config(LOG_CONFIG, {'resize_screenshot_max_width': input.value})();
}
function changeScreenshotMaxHeight(input) {
resizeScreenshotMaxHeight = parseInt(screenshotMaxHeight, 10);
resizeScreenshotMaxHeight = parseInt(input.value, 10);
eel.update_config(LOG_CONFIG, {'resize_screenshot_max_height': input.value})();
}
function openFolder(relative_path) {
Expand Down

0 comments on commit df0d877

Please sign in to comment.