javascript - Editing file in project folder chrome -



javascript - Editing file in project folder chrome -

so if create chrome packaged app , save config file in project folder, how read/write file using chrome api?

does chrome packaged app allow ajax calls? [if utilize ajax read config file] chrome.filesystem interact file in project folder?

i have tried utilize web database store config file persistent database instead of local file. improve way?

window.requestfilesystem(window.persistent, 100 * 1024 * 1024, function (filesystem) { fs = filesystem; console.log(fs); fs.root.getfile('test.txt',{create:true},function(entry) { console.log(entry); entry.createwriter(function(writer) { writer.write(new blob([myconfig])); console.log(entry); }); }); }, null);

javascript google-chrome google-chrome-extension

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -