mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-14 20:16:53 +00:00
Update Extension/scripts/Acc-Switch.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
29b7ac9b89
commit
590a78c3af
1 file changed
+1
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user