diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index a29dedebd..bd55a3133 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -941,7 +941,7 @@ Source.prototype = { }, _setCount: function(count, visible) { - if (!parseInt(count)) + if (isNaN(parseInt(count))) throw new Error("Invalid notification count: " + count); this._counterBin.visible = visible;