Writing to local file system in Chrome extension

后端 未结 3 1088
执笔经年
执笔经年 2020-12-05 16:42
chrome.tabs.onUpdated.addListener(checkForValidUrl);
function checkForValidUrl(tabId, changeInfo, tab) {
    if (tab.url.indexOf(\'https\') > -1) {
        var ta         


        
3条回答
  •  再見小時候
    2020-12-05 17:14

    This filesystem API does not appear to actually write a true "file" to your hard disk. It seems to store a file within a sandboxed safe zone in the browser. You'll have to write a quick and dirty little file manager (or find one out there) to manage the files for a given web app. You can also try visiting filesystem:///temporary/ to see all the files that your app has created.

提交回复
热议问题