mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 17:08:31 +01:00
Change let to const in "Extract EXIF"
This commit is contained in:
parent
ee25df0c28
commit
60fddf837d
1 changed files with 4 additions and 4 deletions
|
@ -14,9 +14,9 @@ import Utils from "../Utils.js";
|
||||||
const Image = {
|
const Image = {
|
||||||
runEXIF(input, args) {
|
runEXIF(input, args) {
|
||||||
try {
|
try {
|
||||||
let bytes = Uint8Array.from(input);
|
const bytes = Uint8Array.from(input);
|
||||||
let parser = ExifParser.create(bytes.buffer);
|
const parser = ExifParser.create(bytes.buffer);
|
||||||
let result = parser.parse();
|
const result = parser.parse();
|
||||||
|
|
||||||
let lines = [];
|
let lines = [];
|
||||||
for (let tagName in result.tags) {
|
for (let tagName in result.tags) {
|
||||||
|
@ -24,7 +24,7 @@ const Image = {
|
||||||
lines.push(`${tagName}: ${value}`);
|
lines.push(`${tagName}: ${value}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
let numTags = lines.length;
|
const numTags = lines.length;
|
||||||
lines.unshift(`Found ${numTags} tags.\n`);
|
lines.unshift(`Found ${numTags} tags.\n`);
|
||||||
return lines.join("\n");
|
return lines.join("\n");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in a new issue