mirror of
https://github.com/gchq/CyberChef
synced 2026-02-28 10:33:18 +00:00
update more ENVIRONMENT_IS_* calls after merge, update some test paths, comments. Remove vulnerability
This commit is contained in:
@@ -8,6 +8,7 @@ import Operation from "../Operation";
|
||||
import OperationError from "../errors/OperationError";
|
||||
import { isImage } from "../lib/FileType";
|
||||
import { toBase64 } from "../lib/Base64";
|
||||
import { isWorkerEnvironment } from "../Utils";
|
||||
import jimp from "jimp";
|
||||
|
||||
/**
|
||||
@@ -131,7 +132,7 @@ class AddTextToImage extends Operation {
|
||||
throw new OperationError(`Error loading image. (${err})`);
|
||||
}
|
||||
try {
|
||||
if (ENVIRONMENT_IS_WORKER())
|
||||
if (isWorkerEnvironment())
|
||||
self.sendStatusMessage("Adding text to image...");
|
||||
|
||||
const fontsMap = {};
|
||||
|
||||
Reference in New Issue
Block a user