work on image and video backgrounds! Not laggy anymore with large files

This commit is contained in:
SethBurkart123
2023-10-17 10:02:26 +11:00
parent 8634177e0f
commit 115a8bb83a
12 changed files with 192 additions and 104 deletions
+1 -6
View File
@@ -132,12 +132,7 @@ function HandleIntexedDB(request, sendResponse) {
case "read":
readData().then((data) => {
const reader = new FileReader();
reader.onload = () => {
const arrayBuffer = reader.result;
sendResponse({ data: arrayBuffer, type: data.type });
};
reader.readAsArrayBuffer(data.data);
sendResponse(data);
});
return true;
}