Update Extension/scripts/Auto-Image.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
SKProCHandCopilot authored and GitHub committed 2025-10-09 21:26:02 +03:00
1 parent 77debf8a41
commit 876b1470e2
1 file changed
+1 -3
+1 -3
View File
@@ -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');