mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Improve layout of addInput parameters.
This commit is contained in:
parent
367d30e421
commit
6964bbc232
1 changed files with 10 additions and 1 deletions
|
@ -793,7 +793,16 @@ self.loadFiles = function(filesData) {
|
||||||
* @param {string} fileData.type - The MIME type of the input being added
|
* @param {string} fileData.type - The MIME type of the input being added
|
||||||
* @param {number} inputNum - Defaults to auto-incrementing self.currentInputNum
|
* @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++;
|
self.numInputs++;
|
||||||
const newInputObj = {
|
const newInputObj = {
|
||||||
inputNum: inputNum
|
inputNum: inputNum
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue