mirror of
https://github.com/tiennm99/WPlace-AutoBOT.git
synced 2026-10-11 12:08:55 +00:00
Update Extension/scripts/utils-manager.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
a9e4316e07
commit
5b83e5d6d3
1 file changed
+1
-3
@@ -1396,9 +1396,7 @@ WPlaceUtilsManager.prototype.storePixelsInIndexedDB = async function(ref, payloa
|
||||
width: payload.width,
|
||||
height: payload.height,
|
||||
totalPixels: payload.totalPixels,
|
||||
pixels: payload.pixels instanceof Uint8Array || payload.pixels instanceof Uint8ClampedArray
|
||||
? new Uint8Array(payload.pixels)
|
||||
: new Uint8Array(payload.pixels),
|
||||
pixels: new Uint8Array(payload.pixels),
|
||||
createdAt: Date.now(),
|
||||
};
|
||||
const req = store.put(data);
|
||||
|
||||
Reference in new issue
Block a user