Update Extension/scripts/Acc-Switch.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
SKProCHandCopilot authored and GitHub committed 2025-10-09 16:02:04 +03:00
1 parent 29b7ac9b89
commit 590a78c3af
1 file changed
+1 -3
+1 -3
View File
@@ -2683,9 +2683,7 @@
console.warn('⚠️ Pixels not found in IDB. Ask user to reload image.');
return;
}
state.imageData.pixels = payload.pixels instanceof Uint8Array || payload.pixels instanceof Uint8ClampedArray
? new Uint8ClampedArray(payload.pixels)
: new Uint8ClampedArray(payload.pixels);
state.imageData.pixels = new Uint8ClampedArray(payload.pixels);
state.imageLoaded = true;
// Optionally try to restore overlay here if available in this script context