Comparing version 1.0.0 to 1.0.1
// follow @HenrikJoreteg and @andyet if you like this ;) | ||
(function () { | ||
function getLocalStorageSafely() { | ||
var localStorage; | ||
try { | ||
localStorage = window.localStorage; | ||
} catch (e) { | ||
// failed: access to localStorage is denied | ||
} | ||
return localStorage; | ||
} | ||
var inNode = typeof window === 'undefined', | ||
ls = !inNode && window.localStorage, | ||
ls = !inNode && getLocalStorageSafely(), | ||
out = {}; | ||
@@ -6,0 +16,0 @@ |
{ | ||
"name": "andlog", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -5,0 +5,0 @@ "description": "Super-simple, client-side CommonJS logging thingy", |
3532
38
5