Remove unneeded replace

This commit is contained in:
DUOLabs333
2023-12-08 12:23:38 -05:00
parent 52ddb10929
commit d2d98c97aa
12 changed files with 20883 additions and 19954 deletions
@@ -204,11 +204,11 @@
async function askPermissions() {
if(dir) {
if(await dir.requestPermission({mode:"readwrite"})!="granted") { send("1","You must give Photopea access to some folder."); return; }
if(await dir.requestPermission({mode:"readwrite"})!="granted") { send("1","You must give us access to some folder."); return; }
}
else {
try { dir = await window.showDirectoryPicker(); }
catch(e) { send("1","You must give Photopea access to some folder."); return; }
catch(e) { console.log(e); send("1","You must give us access to some folder."); return; }
locStor.fset = dir;
var os = locStor.db["transaction"](["rsrc"], "readwrite")["objectStore"]("rsrc");