mirror of
https://github.com/gchq/CyberChef
synced 2025-01-24 02:05:02 +00:00
Remove some inputNum stuff for now
This commit is contained in:
parent
cd094d1475
commit
6430129b2a
1 changed files with 9 additions and 13 deletions
|
@ -27,7 +27,6 @@ self.chef = new Chef();
|
||||||
self.OpModules = OpModules;
|
self.OpModules = OpModules;
|
||||||
self.OperationConfig = OperationConfig;
|
self.OperationConfig = OperationConfig;
|
||||||
|
|
||||||
self.inputNum = "0";
|
|
||||||
|
|
||||||
// Tell the app that the worker has loaded and is ready to operate
|
// Tell the app that the worker has loaded and is ready to operate
|
||||||
self.postMessage({
|
self.postMessage({
|
||||||
|
@ -108,7 +107,7 @@ async function bake(data) {
|
||||||
action: "bakeComplete",
|
action: "bakeComplete",
|
||||||
data: Object.assign(response, {
|
data: Object.assign(response, {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
inputNum: data.inputNum || 0
|
inputNum: data.inputNum
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -116,7 +115,7 @@ async function bake(data) {
|
||||||
action: "bakeError",
|
action: "bakeError",
|
||||||
data: Object.assign(err, {
|
data: Object.assign(err, {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
inputNum: data.inputNum || 0
|
inputNum: data.inputNum
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -146,8 +145,7 @@ async function getDishAs(data) {
|
||||||
action: "dishReturned",
|
action: "dishReturned",
|
||||||
data: {
|
data: {
|
||||||
value: value,
|
value: value,
|
||||||
id: data.id,
|
id: data.id
|
||||||
inputNum: self.inputNum
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -167,8 +165,7 @@ async function calculateHighlights(recipeConfig, direction, pos) {
|
||||||
|
|
||||||
self.postMessage({
|
self.postMessage({
|
||||||
action: "highlightsCalculated",
|
action: "highlightsCalculated",
|
||||||
data: pos,
|
data: pos
|
||||||
inputNum: self.inputNum
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,8 +197,9 @@ self.loadRequiredModules = function(recipeConfig) {
|
||||||
self.sendStatusMessage = function(msg) {
|
self.sendStatusMessage = function(msg) {
|
||||||
self.postMessage({
|
self.postMessage({
|
||||||
action: "statusMessage",
|
action: "statusMessage",
|
||||||
data: msg,
|
data: {
|
||||||
inputNum: self.inputNum
|
message: msg
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -217,8 +215,7 @@ self.setOption = function(option, value) {
|
||||||
action: "optionUpdate",
|
action: "optionUpdate",
|
||||||
data: {
|
data: {
|
||||||
option: option,
|
option: option,
|
||||||
value: value,
|
value: value
|
||||||
inputNum: self.inputNum
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -237,8 +234,7 @@ self.setRegisters = function(opIndex, numPrevRegisters, registers) {
|
||||||
data: {
|
data: {
|
||||||
opIndex: opIndex,
|
opIndex: opIndex,
|
||||||
numPrevRegisters: numPrevRegisters,
|
numPrevRegisters: numPrevRegisters,
|
||||||
registers: registers,
|
registers: registers
|
||||||
inputNum: self.inputNum
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue