Update Extension/scripts/utils-manager.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
SKProCH
2025-10-09 16:02:16 +03:00
committed by GitHub
co-authored by Copilot
parent 590a78c3af
commit 17552e2fda
+1 -3
View File
@@ -910,9 +910,7 @@ class WPlaceUtilsManager {
return;
}
try {
window.state.imageData.pixels = payload.pixels instanceof Uint8Array || payload.pixels instanceof Uint8ClampedArray
? new Uint8ClampedArray(payload.pixels)
: new Uint8ClampedArray(payload.pixels);
window.state.imageData.pixels = new Uint8ClampedArray(payload.pixels);
window.state.imageLoaded = true;
// Rebuild processor and notify modules/UI