Update Module.js (#1090)

Added const $ = window.$; at line 19 inside extraManipulation(pixels)
This commit is contained in:
Tudor Anghelina
2019-08-30 19:58:05 +03:00
committed by Jeffrey Warren
parent 1cc9fd1a50
commit 3741d679bd

View File

@@ -16,6 +16,7 @@ module.exports = function Average(options, UI) {
// do the averaging
function extraManipulation(pixels) {
const $ = window.$;
var i = 0, sum = [0, 0, 0, 0];
while (i < pixels.data.length) {
sum[0] += pixels.data[i++];