mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-14 02:15:18 +00:00
Update Extension/scripts/Auto-Image.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
77debf8a41
commit
876b1470e2
1 file changed
+1
-3
@@ -1491,9 +1491,7 @@ function getText(key, params) {
|
||||
console.warn('⚠️ [DEBUG] Pixels not found in IDB. Ask user to reload image.');
|
||||
return;
|
||||
}
|
||||
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;
|
||||
console.log('✅ [DEBUG] Pixels loaded from IDB');
|
||||
|
||||
|
||||
Reference in new issue
Block a user