mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2026-06-20 15:41:13 +00:00
Remove unneeded replace
This commit is contained in:
@@ -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
Reference in New Issue
Block a user