mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 02:58:09 +01:00
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
var log = require('loglevel')
|
|
log.setDefaultLevel(5)
|
|
|
|
require('jsdom-global')()
|
|
window.localStorage = {}
|
|
|
|
if (!('crypto' in window)) { window.crypto = {} }
|
|
window.crypto.getRandomValues = require('polyfill-crypto.getrandomvalues')
|
|
|
|
window.log = log
|
|
global.log = log
|