From 590a78c3afe85dc5b384cfb9fc5c733686e5f160 Mon Sep 17 00:00:00 2001 From: SKProCH <29896317+SKProCH@users.noreply.github.com> Date: Thu, 9 Oct 2025 16:02:04 +0300 Subject: [PATCH] Update Extension/scripts/Acc-Switch.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Extension/scripts/Acc-Switch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Extension/scripts/Acc-Switch.js b/Extension/scripts/Acc-Switch.js index b8f1138..26e1056 100644 --- a/Extension/scripts/Acc-Switch.js +++ b/Extension/scripts/Acc-Switch.js @@ -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