[fix] hypamemory save order
This commit is contained in:
@@ -332,7 +332,7 @@ export async function supaMemory(
|
|||||||
HypaData[0].supa = supaMemory
|
HypaData[0].supa = supaMemory
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
HypaData.push({
|
HypaData.unshift({
|
||||||
id: lastId,
|
id: lastId,
|
||||||
hypa: hypaChunks,
|
hypa: hypaChunks,
|
||||||
supa: supaMemory
|
supa: supaMemory
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ export class AutoStorage{
|
|||||||
this.realStorage = new NodeStorage()
|
this.realStorage = new NodeStorage()
|
||||||
return
|
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")
|
console.log("using opfs storage")
|
||||||
|
|
||||||
const forage = localforage.createInstance({
|
const forage = localforage.createInstance({
|
||||||
|
|||||||
Reference in New Issue
Block a user