Commit 362d682f authored by Dão Gottwald's avatar Dão Gottwald
Browse files

Bug 1662797 - Implement live update for top site remote settings. r=mikedeboer, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D89750
parent 1ab0c765
......@@ -284,6 +284,9 @@ this.TopSitesFeed = class TopSitesFeed {
async _getRemoteConfig(firstTime = true) {
if (!this._remoteConfig) {
this._remoteConfig = await RemoteSettings("top-sites");
this._remoteConfig.on("sync", () => {
this._readDefaults();
});
}
let result = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment