Skip to content

Commit b283779

Browse files
committed
Rename hashFn => resolveHashFn
So that it's clearer that this function is there to help you figure out the hash function.
1 parent d003ccf commit b283779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/computeAndInjectDiffs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function imageTo2DArray({ data, width, height }, paddingRight) {
1818
return newData;
1919
}
2020

21-
function hashFn() {
21+
function resolveHashFn() {
2222
// Safari has a bug where trying to reference `btoa` inside a web worker will
2323
// result in an error, so we fall back to the slower (?) `JSON.stringify`. The
2424
// only way to prevent this seems to be by using a try/catch. We do this in its
@@ -39,7 +39,7 @@ function hashFn() {
3939
}
4040
}
4141

42-
const HASH_FN = hashFn();
42+
const HASH_FN = resolveHashFn();
4343

4444
function transparentLine(rawBgPixel, width) {
4545
const bgPixel = compose([200, 200, 200, 50], rawBgPixel);

0 commit comments

Comments
 (0)