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
Post a Comment