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");
@@ -165,7 +165,8 @@
while(j < 25 && ii < out.length)
{
//could just check names from metadata, probably faster than .includes
if(thumbnailExtenstions.includes(out[ii][0].split('.').pop()))
var pts = out[ii][0].split('.');
if(pts.length>1 && thumbnailExtenstions.includes(pts.pop()))
{
out[ii].push(response.result.entries[j].thumbnail)
++j
File diff suppressed because it is too large Load Diff