Skip to content

Commit

Permalink
Degrade gracefully in FF/Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
adamschwartz committed Apr 12, 2013
1 parent fe67334 commit 5334287
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion log.coffee
Expand Up @@ -73,5 +73,9 @@ stringToArgs = (str, args) ->
[str].concat styles

# Export
window.log = log
if /Chrome/.test navigator.userAgent # TODO - test for stylized log support instead
window.log = log
else
window.log = _log

window.log.l = _log
6 changes: 5 additions & 1 deletion log.js
Expand Up @@ -94,6 +94,10 @@
}
return [str].concat(styles);
};
window.log = log;
if (/Chrome/.test(navigator.userAgent)) {
window.log = log;
} else {
window.log = _log;
}
window.log.l = _log;
}).call(this);

0 comments on commit 5334287

Please sign in to comment.