Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
Sergey Ratiashvili committed Dec 14, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f992b70 commit 2f370ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Encoder/index.ts
Original file line number Diff line number Diff line change
@@ -211,11 +211,11 @@ const encode = async () => {
await addLog(`Creating qrs...`);
setGifProgress(10);

const fileredChunks = exactFrames.length
const filteredChunks = exactFrames.length
? chunks.filter((_, index) => exactFrames.includes(index))
: chunks;

if (!fileredChunks.length) {
if (!filteredChunks.length) {
await addLog(`😖 No frames to include into gif`);
setGifProgress(undefined);
return;
@@ -225,7 +225,7 @@ const encode = async () => {
IMAGE_SIZE,
"neuquant",
false,
fileredChunks.length
filteredChunks.length
);
encoder.start();
encoder.setRepeat(0);
@@ -234,7 +234,7 @@ const encode = async () => {
});
encoder.setDelay(frameDuration * 1000);
await Promise.all(
fileredChunks.map(({ chunk, index }) => {
filteredChunks.map(({ chunk, index }) => {
return createQR(chunk, {
index: index,
total: chunks.length,

0 comments on commit 2f370ef

Please sign in to comment.