[fix] hypamemory save order
This commit is contained in:
@@ -332,7 +332,7 @@ export async function supaMemory(
|
||||
HypaData[0].supa = supaMemory
|
||||
}
|
||||
else{
|
||||
HypaData.push({
|
||||
HypaData.unshift({
|
||||
id: lastId,
|
||||
hypa: hypaChunks,
|
||||
supa: supaMemory
|
||||
|
||||
@@ -34,7 +34,9 @@ export class AutoStorage{
|
||||
this.realStorage = new NodeStorage()
|
||||
return
|
||||
}
|
||||
else if(window.navigator?.storage?.getDirectory && localStorage.getItem('opfs_flag!') === "able"){
|
||||
else if(window.navigator?.storage?.getDirectory &&
|
||||
FileSystemFileHandle?.prototype?.createWritable &&
|
||||
localStorage.getItem('opfs_flag!') === "able"){
|
||||
console.log("using opfs storage")
|
||||
|
||||
const forage = localforage.createInstance({
|
||||
|
||||
Reference in New Issue
Block a user