[Pkg-javascript-commits] [node-randomfill] 30/47: browser: fix Buffer is undefined
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:52:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-randomfill.
commit 1870ca394623e1c88b8188a45a92a2dd7b0d5c53
Author: Daniel Cousens <github at dcousens.com>
Date: Fri Jun 2 14:15:24 2017 +1000
browser: fix Buffer is undefined
---
browser.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/browser.js b/browser.js
index 357f996..9669903 100644
--- a/browser.js
+++ b/browser.js
@@ -4,7 +4,7 @@ function oldBrowser () {
throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11')
}
-var Buffer = require('safe-buffer')
+var Buffer = require('safe-buffer').Buffer
var crypto = global.crypto || global.msCrypto
if (crypto && crypto.getRandomValues) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-randomfill.git
More information about the Pkg-javascript-commits
mailing list