Fixed browser shim for setImmediate.
This commit is contained in:
parent
7e1e760b95
commit
ce864fa1b2
@ -1 +1,4 @@
|
|||||||
|
|
||||||
require('setimmediate');
|
require('setimmediate');
|
||||||
|
|
||||||
|
module.exports.platform = 'browser';
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// This is empty in node, and used by browserify to inject extra goodies
|
// This is empty in node, and used by browserify to inject extra goodies
|
||||||
import {} from './utils/shims';
|
import { platform } from './utils/shims';
|
||||||
|
|
||||||
|
|
||||||
import { Contract, Interface } from './contracts';
|
import { Contract, Interface } from './contracts';
|
||||||
import * as providers from './providers';
|
import * as providers from './providers';
|
||||||
@ -37,6 +36,7 @@ export {
|
|||||||
|
|
||||||
wordlists,
|
wordlists,
|
||||||
|
|
||||||
|
platform,
|
||||||
version
|
version
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
/* no shims for node */
|
/* no shims for node */
|
||||||
|
|
||||||
export default { };
|
export const platform = 'node';
|
||||||
|
Loading…
Reference in New Issue
Block a user