2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-04 17:43:28 +00:00

Improve layout of addInput parameters.

This commit is contained in:
j433866
2019-07-03 16:15:14 +01:00
parent 367d30e421
commit 6964bbc232

View File

@@ -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