mirror of
https://github.com/gchq/CyberChef
synced 2025-01-09 11:08:47 +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() {
|
displayFilePreview() {
|
||||||
const inputNum = this.getActiveTab(),
|
const inputNum = this.getActiveTab(),
|
||||||
inputText = document.getElementById("input-text"),
|
inputText = document.getElementById("input-text"),
|
||||||
fileSlice = this.fileBuffer.slice(0, 4096),
|
fileSlice = this.getInput(inputNum).slice(0, 4096),
|
||||||
fileThumb = document.getElementById("input-file-thumbnail"),
|
fileThumb = document.getElementById("input-file-thumbnail"),
|
||||||
arrBuffer = new Uint8Array(this.fileBuffer),
|
arrBuffer = new Uint8Array(this.getInput(inputNum)),
|
||||||
type = isImage(arrBuffer);
|
type = isImage(arrBuffer);
|
||||||
if (type && type !== "image/tiff" && this.app.options.imagePreview) {
|
if (type && type !== "image/tiff" && this.app.options.imagePreview) {
|
||||||
// Don't show TIFFs as not much supports them
|
// Don't show TIFFs as not much supports them
|
||||||
|
|
Loading…
Reference in a new issue