Deep Kakkad
Deep Kakkad

Reputation: 47

How to change images in a chrome extension dynamically?

I'm working on a chrome extension and I want it to change images everyday. How is it possible after I've published the extension? as in, do I have to update it with different images everytime?

Upvotes: 0

Views: 192

Answers (1)

Xan
Xan

Reputation: 77523

You will need to host the image somewhere the extension can access. Preferably with CORS enabled, or you'll potentially run into issues.

It's important to only request it once and then somehow save it on your side (for example, as a data URI that you can store in chrome.storage).

Upvotes: 2

Related Questions