We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8531e commit 7fda70eCopy full SHA for 7fda70e
src/utils/image.js
@@ -13,7 +13,7 @@ export const guessMimeTypeFromBase64 = (base64String) => {
13
const binaryStr = atob(base64String.substring(0, 50)); // Decode a portion to check magic numbers
14
15
const byteArr = new Uint8Array(binaryStr.length);
16
- for (let i = 0; i < binaryStr.length; i++) {
+ for (let i = 0; i < binaryStr.length; i += 1) {
17
byteArr[i] = binaryStr.charCodeAt(i);
18
}
19
0 commit comments