Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
guard the logger against the IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Matas committed Mar 14, 2011
1 parent 803d63c commit 74a684d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/sc-player.js
Expand Up @@ -40,8 +40,12 @@
useSandBox = false,
$doc = $(document),
log = function(args) {
if(debug && window.console && window.console.log){
window.console.log.apply(window.console, arguments);
try {
if(debug && window.console && window.console.log){
window.console.log.apply(window.console, arguments);
}
} catch (e) {
// no console available
}
},
domain = useSandBox ? 'sandbox-soundcloud.com' : 'soundcloud.com',
Expand Down

0 comments on commit 74a684d

Please sign in to comment.