Writing to local file system in Chrome extension

后端 未结 3 1089
执笔经年
执笔经年 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:16

    Based on this:

    At the time of writing this article, Google Chrome 9+ has the only working implementation of the FileSystem API. Since a dedicated browser UI does not yet exist for file/quota management, the API cannot be used without running Chrome with the --unlimited-quota-for-files flag (Note: if you're building an app or extension for the Chrome Web Store, the unlimitedStorage manifest file permission will suffice).

    found at http://www.html5rocks.com/tutorials/file/filesystem/#toc-support

    I assume you are using Chrome and that you have not set the --unlimited-quota-for-files flag

提交回复
热议问题