let's try indexdb

This commit is contained in:
vuk
2024-11-04 23:42:55 +01:00
parent 31b725dfc6
commit aa71f952ec
6 changed files with 99 additions and 1 deletions

13
scripts/popup.js Normal file
View File

@@ -0,0 +1,13 @@
document.getElementById('uploadButton').addEventListener('click', async () => {
const miljeInput = document.getElementById('fileInput');
const milje = miljeInput.files[0];
if(!milje) {
alert("Please select a milje.");
return;
}
const base64Milje = await convertImageToBase64(milje);
await saveImage(base64Milje);
await displayImage(base64Milje);
})