Skip to content

Commit

Permalink
make 'chrome web developer' log more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
haozhime committed Oct 18, 2016
1 parent 25ab8db commit 99671ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class StcLog {
message = str;
}

if(window in global) {
if(typeof window !== 'undefined') {
switch(type){
case 'error':
message = console.error(message);
Expand Down

0 comments on commit 99671ae

Please sign in to comment.