Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (removableCacheNode) {
this._topBar.resetNodeForCache(removableCacheNode);
}
// Hide the last sync number
var tempNode = cacheNode.querySelector('.msg-last-synced-label');
if (tempNode) {
tempNode.classList.add('collapsed');
}
tempNode = cacheNode.querySelector('.msg-last-synced-value');
if (tempNode) {
tempNode.innerHTML = '';
}
// Trim vScroll containers that are not in play
VScroll.trimMessagesForCache(
cacheNode.querySelector('.msg-vscroll-container'),
this._cacheListLimit
);
htmlCache.saveFromNode(module.id, cacheNode);
},