Skip to content

Commit

Permalink
use available constant __DEBUG__ instead of window
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv committed Feb 23, 2017
1 parent eaebc4e commit 05c64df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bows.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Custom, browser-only build of:
// https://github.com/latentflip/bows
// Checks for `window.DEBUG` instead of `window.localStorage.debug`

/* global __DEBUG__ */
var root = {
navigator: {userAgent: ''}
};
Expand All @@ -11,7 +11,7 @@ if(typeof window !== 'undefined'){

function makeLogger(debug) {
var out = {};
if (debug) {
if (__DEBUG__) {
out = root.console;
} else {
var methods = 'assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn'.split(','),
Expand Down

0 comments on commit 05c64df

Please sign in to comment.