mirror of
https://github.com/gchq/CyberChef.git
synced 2026-01-30 12:20:33 -08:00
fix: static
This commit is contained in:
parent
2198a8d3d3
commit
61ccf483d7
1 changed files with 1 additions and 7 deletions
|
|
@ -7,6 +7,7 @@
|
|||
import Operation from "../Operation.mjs";
|
||||
import OperationError from "../errors/OperationError.mjs";
|
||||
import { isWorkerEnvironment } from "../Utils.mjs";
|
||||
import cs from "@alexaltea/capstone-js/dist/capstone.min.js";
|
||||
|
||||
/**
|
||||
* Disassemble ARM operation
|
||||
|
|
@ -96,13 +97,6 @@ class DisassembleARM extends Operation {
|
|||
bytes.push(parseInt(hexInput.substr(i, 2), 16));
|
||||
}
|
||||
|
||||
if (isWorkerEnvironment()) {
|
||||
self.sendStatusMessage("Loading Capstone disassembler...");
|
||||
}
|
||||
|
||||
// Dynamically import capstone to avoid loading the large library until needed
|
||||
const cs = (await import("@alexaltea/capstone-js/dist/capstone.min.js")).default;
|
||||
|
||||
// Determine architecture constant
|
||||
let arch;
|
||||
if (architecture === "ARM64 (AArch64)") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue