Comparing version 0.1.1 to 0.1.2
/*global namespace*/ | ||
(function () { | ||
var global = this; | ||
@@ -42,3 +43,3 @@ function supportsColors() { | ||
function defaultFormat() { | ||
if (typeof window !== 'undefined' || typeof window.navigator !== 'undefined') { | ||
if (typeof global.window !== 'undefined' && typeof global.window.navigator !== 'undefined') { | ||
return 'html'; // Browser | ||
@@ -45,0 +46,0 @@ } else if (supportsColors()) { |
@@ -130,2 +130,3 @@ (function () { | ||
(function () { | ||
var global = this; | ||
@@ -170,3 +171,3 @@ function supportsColors() { | ||
function defaultFormat() { | ||
if (typeof window !== 'undefined' || typeof window.navigator !== 'undefined') { | ||
if (typeof global.window !== 'undefined' && typeof global.window.navigator !== 'undefined') { | ||
return 'html'; // Browser | ||
@@ -173,0 +174,0 @@ } else if (supportsColors()) { |
{ | ||
"name": "magicpen", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Styled output in both consoles and browsers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99132
1657