Skip to content

Commit

Permalink
fix: #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Rodionov committed Aug 21, 2015
1 parent d096ffb commit a123a6c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/createLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function createLogger() {
var predicate = options.predicate;
var logger = options.logger;

var console = logger || console;
var console = logger || window.console;

// exit if console undefined
if (typeof console === 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion example/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-logger",
"version": "1.0.2",
"version": "1.0.3",
"description": "Logger for redux",
"main": "build/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/createLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
function createLogger(options = {}) {
return ({ getState }) => (next) => (action) => {
const { level, collapsed, predicate, logger } = options;
const console = logger || console;
const console = logger || window.console;

// exit if console undefined
if (typeof console === 'undefined') {
Expand Down

0 comments on commit a123a6c

Please sign in to comment.