mirror of
https://github.com/gchq/CyberChef
synced 2025-01-08 10:38:46 +00:00
Fix file preview not working
This commit is contained in:
parent
0d8584f499
commit
f6ab82faaf
1 changed files with 2 additions and 2 deletions
|
@ -700,9 +700,9 @@ class InputWaiter {
|
|||
displayFilePreview() {
|
||||
const inputNum = this.getActiveTab(),
|
||||
inputText = document.getElementById("input-text"),
|
||||
fileSlice = this.fileBuffer.slice(0, 4096),
|
||||
fileSlice = this.getInput(inputNum).slice(0, 4096),
|
||||
fileThumb = document.getElementById("input-file-thumbnail"),
|
||||
arrBuffer = new Uint8Array(this.fileBuffer),
|
||||
arrBuffer = new Uint8Array(this.getInput(inputNum)),
|
||||
type = isImage(arrBuffer);
|
||||
if (type && type !== "image/tiff" && this.app.options.imagePreview) {
|
||||
// Don't show TIFFs as not much supports them
|
||||
|
|
Loading…
Reference in a new issue