Set up Grunt tasks to build web and Node versions of CyberChef using webpack

This commit is contained in:
n1474335 2017-03-21 22:41:44 +00:00
parent 99f306dc18
commit 885fbe13ac
56 changed files with 299 additions and 29138 deletions

View file

@ -89,11 +89,11 @@ var ByteRepr = module.exports = {
else if (ordinal < 4294967296) padding = 8;
else padding = 2;
if (padding > 2) app.options.attemptHighlight = false;
if (padding > 2 && app) app.options.attemptHighlight = false;
output += Utils.hex(ordinal, padding) + delim;
} else {
app.options.attemptHighlight = false;
if (app) app.options.attemptHighlight = false;
output += ordinal.toString(base) + delim;
}
}
@ -119,7 +119,7 @@ var ByteRepr = module.exports = {
throw "Error: Base argument must be between 2 and 36";
}
if (base !== 16) {
if (base !== 16 && app) {
app.options.attemptHighlight = false;
}