Prevent lengthy processing if the element is offscreen

removed some console messages
This commit is contained in:
Andrew Stephens
2023-01-16 10:28:44 -05:00
parent 382b192aca
commit 9b24338739
3 changed files with 35 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
onmessage = function (e) {
console.log("Worker: start", e.data)
const result = dither(e.data.imageData, e.data.pixelSize, e.data.cutoff)
const reply = {}