Skip to content

Commit

Permalink
Improve layout of addInput parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
j433866 committed Jul 3, 2019
1 parent 367d30e commit 6964bbc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/web/workers/InputWorker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,16 @@ self.loadFiles = function(filesData) {
* @param {string} fileData.type - The MIME type of the input being added
* @param {number} inputNum - Defaults to auto-incrementing self.currentInputNum
*/
self.addInput = function(changeTab=false, type, fileData={name: "unknown", size: "unknown", type: "unknown"}, inputNum = self.currentInputNum++) {
self.addInput = function(
changeTab = false,
type,
fileData = {
name: "unknown",
size: "unknown",
type: "unknown"
},
inputNum = self.currentInputNum++
) {
self.numInputs++;
const newInputObj = {
inputNum: inputNum
Expand Down

0 comments on commit 6964bbc

Please sign in to comment.