[fix] file sync login

This commit is contained in:
kwaroran
2023-06-30 16:44:20 +09:00
parent 7eb6907eef
commit c2648477d2
5 changed files with 76 additions and 27 deletions

View File

@@ -86,6 +86,10 @@ export async function getFileSrc(loc:string) {
return convertFileSrc(loc)
}
try {
if(forageStorage.isAccount){
return hubURL + `/rs/` + loc
}
if(usingSw){
const encoded = Buffer.from(loc,'utf-8').toString('hex')
let ind = fileCache.origin.indexOf(loc)