Skip to content
Browse files

Fix faulty validation check on numeric.

  • Loading branch information...
1 parent fd0f3b1 commit 3a0e9aabc3bafb4b66bfb4bdc502e423de38725b @bryanrsmith committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 tinycon.js
View
2 tinycon.js
@@ -221,7 +221,7 @@
Tinycon.setBubble = function(num, colour){
// validate
- if(isNaN(num)) return log('Bubble must be a number');
+ if(isNaN(parseFloat(num)) || !isFinite(num)) return log('Bubble must be a number');
drawFavicon(num, colour);
return this;

0 comments on commit 3a0e9aa

Please sign in to comment.
Something went wrong with that request. Please try again.