popup may be closed before main process respond

This commit is contained in:
gorhill 2015-07-07 11:05:00 -04:00
parent 235bce9faf
commit 6214591fb8
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ var renderPopup = function() {
var renderPopupLazy = function() {
var onDataReady = function(data) {
if ( !data ) { return; }
var v = data.hiddenElementCount || '';
uDom.nodeFromSelector('#no-cosmetic-filtering > span.badge')
.textContent = typeof v === 'number' ? v.toLocaleString() : v;