sniff global as window or global due to new CSP in browser

This commit is contained in:
AJ ONeal 2014-09-28 02:22:08 -07:00
parent cb62ab6893
commit c11dfd7ecf
2 changed files with 2 additions and 2 deletions

View File

@ -26,4 +26,4 @@
} }
exports.knuthShuffle = shuffle; exports.knuthShuffle = shuffle;
}('undefined' !== typeof exports && exports || new Function('return this')())); }('undefined' !== typeof exports && exports || 'undefined' !== typeof window && window || global));

View File

@ -1,6 +1,6 @@
{ {
"name": "knuth-shuffle", "name": "knuth-shuffle",
"version": "1.0.0", "version": "1.0.1",
"description": "The Fisher-Yates (aka Knuth) shuffle for Browser and Node.js", "description": "The Fisher-Yates (aka Knuth) shuffle for Browser and Node.js",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {