phantomjs-crypto-polyfill
v1.0.1
Published
Simple polyfill that just overrides the getRandomValues crypto function with a dummy function to avoid phantomjs breaking with when using crypto
Downloads
6
Readme
phantomjs-crypto-polyfill
Simple polyfill that just overrides the getRandomValues crypto function with a dummy function to avoid PhantomJS breaking with when using crypto
Installation
npm install --save-dev phantomjs-crypto-polyfill
Usage
require('phantomjs-crypto-polyfill')
Karma
Include the polyfill in the files list of karma.conf
...
files: [
'./node_modules/phantomjs-crypto-polyfill/crypto-polyfill.js',
...
]
...