mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-09-03 10:22:51 +00:00
Update Extension/scripts/utils-manager.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user