mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Merge branch 'master' into v9
This commit is contained in:
commit
e4e32a9c56
22 changed files with 384 additions and 264 deletions
|
@ -256,7 +256,7 @@ class App {
|
|||
|
||||
for (let j = 0; j < catConf.ops.length; j++) {
|
||||
const opName = catConf.ops[j];
|
||||
if (!this.operations.hasOwnProperty(opName)) {
|
||||
if (!(opName in this.operations)) {
|
||||
log.warn(`${opName} could not be found.`);
|
||||
continue;
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ class App {
|
|||
validFavourites(favourites) {
|
||||
const validFavs = [];
|
||||
for (let i = 0; i < favourites.length; i++) {
|
||||
if (this.operations.hasOwnProperty(favourites[i])) {
|
||||
if (favourites[i] in this.operations) {
|
||||
validFavs.push(favourites[i]);
|
||||
} else {
|
||||
this.alert(`The operation "${Utils.escapeHtml(favourites[i])}" is no longer available. ` +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue