html5 - Can the code in a .crx chrome app have write access to the files within itself (the crx)? -


i have crx has number of files want able change on time. example, might have structure:

index.html js/code.js images/someimage.png 

i want able use ajax (or jsonp) download new image , overwrite image/someimage.png (after crx has been installed chrome). possible?

no, can not modify application / extension data files directly.

but, can store downloaded image chrome.storage, chrome.filesystem, or chrome.syncfilesystem. @ run time can check see if downloaded image there , swap out image reference. e.g. use dataurl or blob.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -