Skip to content

Commit

Permalink
feat(update): minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Feb 2, 2024
1 parent 7a492c9 commit 9ae5db3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const scanCodes = (
console.warn("Native frame processor failed to return a proper array!");
return [];
}
return nativeCodes.map((nativeBarcode) =>
normalizeNativeBarcode(nativeBarcode, frame),
);
return nativeCodes
.slice() // Prevent "Frame Processor Error: Exception in HostObject::get for prop 'width': java.lang.RuntimeException: Frame is already closed! Are you trying to access the Image data outside of a Frame Processor's lifetime?" with fast refresh
.map((nativeBarcode) => normalizeNativeBarcode(nativeBarcode, frame));
};

0 comments on commit 9ae5db3

Please sign in to comment.