How to get the Chrome extension to capture and save the image, constantly caching it?

I am creating an extension for Chrome. Is there a way to capture an image from a URL and write it to local storage so that the extension can display the image even if the user is not connected to the network?

+4
source share
1 answer

You can encode it in base64 ( function here ) and then save the result in localstorage, for example.

+4
source

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


All Articles