Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support persistent indexeddb/zangodb #38

Open
sevenbitbyte opened this issue Nov 9, 2022 · 1 comment
Open

Support persistent indexeddb/zangodb #38

sevenbitbyte opened this issue Nov 9, 2022 · 1 comment

Comments

@sevenbitbyte
Copy link
Member

@sevenbitbyte
Copy link
Member Author

Chrome specific snippet

function SaveDatFileBro(localstorage) {
  localstorage.root.getFile("info.txt", {create: true}, 
  
  function(DatFile) {
    DatFile.createWriter(function(DatContent) {
      var blob = new Blob(["Lorem Ipsum"], {type: "text/plain"});
      DatContent.write(blob);
   });
  });
}

navigator.webkitPersistentStorage.requestQuota(1024*1024,  function() {
 
 window.webkitRequestFileSystem(window.PERSISTENT , 1024*1024, SaveDatFileBro);

 })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant