Fixed browser shim for setImmediate.

This commit is contained in:
Richard Moore 2018-07-17 02:05:24 -04:00
parent 7e1e760b95
commit ce864fa1b2
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
3 changed files with 6 additions and 3 deletions

@ -1 +1,4 @@
require('setimmediate');
module.exports.platform = 'browser';

@ -1,8 +1,7 @@
'use strict';
// 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 * as providers from './providers';
@ -37,6 +36,7 @@ export {
wordlists,
platform,
version
};

@ -1,3 +1,3 @@
/* no shims for node */
export default { };
export const platform = 'node';