sniff global as window or global due to new CSP in browser
This commit is contained in:
parent
cb62ab6893
commit
c11dfd7ecf
2
index.js
2
index.js
|
@ -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));
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue