Skip to content

Instantly share code, notes, and snippets.

@kmaraz
Created December 6, 2019 23:18
Show Gist options
  • Save kmaraz/0553eddec5298bdd830cd942648aec8f to your computer and use it in GitHub Desktop.
Save kmaraz/0553eddec5298bdd830cd942648aec8f to your computer and use it in GitHub Desktop.
this.WindowRef.adminWindow.channelInitialized = true;
if (this.WindowRef.adminWindow.cacheUpdates && this.WindowRef.adminWindow.cacheUpdates.length) {
for (let i = 0; i < this.WindowRef.adminWindow.cacheUpdates.length; i++) {
const { cacheName, updatedURL } = this.WindowRef.adminWindow.cacheUpdates[i];
this.retrieveAndSendData(cacheName, updatedURL);
}
this.WindowRef.adminWindow.cacheUpdates = [];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment