Merge pull request #421 from madrang/beta

Fix plugins needing to specify many params or they would be missing in the render request.
This commit is contained in:
cmdr2 2022-11-02 12:34:45 +05:30 committed by GitHub
commit 2b3e38f77e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,10 +340,10 @@ function onDownloadImageClick(req, img) {
imgDownload.click()
}
function modifyCurrentRequest(req, ...reqDiff) {
function modifyCurrentRequest(...reqDiff) {
const newTaskRequest = getCurrentUserRequest()
newTaskRequest.reqBody = Object.assign({}, req, ...reqDiff, {
newTaskRequest.reqBody = Object.assign(newTaskRequest.reqBody, ...reqDiff, {
use_cpu: useCPUField.checked
})
newTaskRequest.seed = newTaskRequest.reqBody.seed