Fix support for browsers
Use `process.nextTick` instead of `setImmediate`, as the latter is not a standard API. https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate
This commit is contained in:
parent
caebbf47ff
commit
61a4dd939f
|
@ -49,7 +49,7 @@ RemoteConnector.initialize = function(dataSource, callback) {
|
|||
var connector = dataSource.connector =
|
||||
new RemoteConnector(dataSource.settings);
|
||||
connector.connect();
|
||||
setImmediate(callback);
|
||||
process.nextTick(callback);
|
||||
};
|
||||
|
||||
RemoteConnector.prototype.define = function(definition) {
|
||||
|
|
Loading…
Reference in New Issue