Adds an alarm to periodically check if the imported trustlists need refreshing. Every 24h (will be configurable at some point), the extension now downloads each TL, check the last_updated timestamp, and if more recent, replaces the one in the trust store.
To test:
change the periodInMinutes value in background.ts from 1440 to 1 to speed up auto-refresh, and build the extension in debug mode
download the IPTC trust list, remove the CBC cert, change the last_modified date to an earlier date, and import it in the extension.
open the origin test page; the CBC "eclipse" picture should be unknown.
wait 1 minute
see the download console log in the background script. The IPTC TL should be updated to its current version.
Adds an alarm to periodically check if the imported trustlists need refreshing. Every 24h (will be configurable at some point), the extension now downloads each TL, check the last_updated timestamp, and if more recent, replaces the one in the trust store.
To test:
periodInMinutes
value in background.ts from 1440 to 1 to speed up auto-refresh, and build the extension in debug mode