[Pkg-javascript-commits] [jquery-minicolors] 08/15: Better check for console
David Prévot
taffit at moszumanska.debian.org
Wed Sep 3 16:34:48 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository jquery-minicolors.
commit 35955ce0c231b9bc9644f3dddf84e031b4a6bfcf
Author: Cory LaViska <cory at abeautifulsite.net>
Date: Tue Sep 2 10:52:42 2014 -0400
Better check for console
---
index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index fad8476..0ed548f 100644
--- a/index.html
+++ b/index.html
@@ -70,9 +70,9 @@
change: function(hex, opacity) {
if( !hex ) return;
if( opacity ) hex += ', ' + opacity;
- try {
+ if( typeof console === 'object' ) {
console.log(hex);
- } catch(e) {}
+ }
},
theme: 'bootstrap'
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery-minicolors.git
More information about the Pkg-javascript-commits
mailing list