Saving images in chrome extension

I am trying to encode a chrome extension that shows bookmarks on an html page with the name, url and tab thumbnail. So far, I got JS to capture the tab thumbnail in PNG format, but now I need to store it somewhere, so when I open the extension page, the images may be there.

$scope.getPageThumbnail = function() {
  chrome.tabs.captureVisibleTab(null, {format: 'png'}, function(img)
    {
      $scope.img = img;
    }
  );
};

Is there a way to save images inside the extension, so if the extension is deleted, is everything deleted? Thanks in advance, Daniel.

+4
source share
2 answers
+1
0

Source: https://habr.com/ru/post/1629897/


All Articles