util-deprecate
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -58,3 +58,8 @@ | ||
function config (name) { | ||
if (!global.localStorage) return false; | ||
// accessing global.localStorage can trigger a DOMException in sandboxed iframes | ||
try { | ||
if (!global.localStorage) return false; | ||
} catch (_) { | ||
return false; | ||
} | ||
var val = global.localStorage[name]; | ||
@@ -61,0 +66,0 @@ if (null == val) return false; |
1.0.2 / 2015-10-07 | ||
================== | ||
* use try/catch when checking `localStorage` (#3, @kumavis) | ||
1.0.1 / 2014-11-25 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "util-deprecate", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The Node.js `util.deprecate()` function with browser support", | ||
@@ -5,0 +5,0 @@ "main": "node.js", |
5481
63