mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
swap ENVIRONMENT_IS_* functions for Utils named exports
This commit is contained in:
parent
c70f14419a
commit
1c24c05647
41 changed files with 117 additions and 141 deletions
|
@ -7,6 +7,7 @@
|
|||
import Dish from "./Dish";
|
||||
import Recipe from "./Recipe";
|
||||
import log from "loglevel";
|
||||
import { isWorkerEnvironment } from "./Utils";
|
||||
|
||||
/**
|
||||
* The main controller for CyberChef.
|
||||
|
@ -46,7 +47,7 @@ class Chef {
|
|||
notUTF8 = options && options.hasOwnProperty("treatAsUtf8") && !options.treatAsUtf8;
|
||||
let error = false;
|
||||
|
||||
if (containsFc && ENVIRONMENT_IS_WORKER()) self.setOption("attemptHighlight", false);
|
||||
if (containsFc && isWorkerEnvironment()) self.setOption("attemptHighlight", false);
|
||||
|
||||
// Clean up progress
|
||||
if (progress >= recipeConfig.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue