mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 04:01:55 +01:00
setImmediate -> process.nextTick
This commit is contained in:
parent
26ff9f63bb
commit
b5fc315b37
1 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ try {
|
|||
browser.addCommand('flushReactUpdates', function() {
|
||||
browser.executeAsync(function(done) {
|
||||
// For any events to propogate
|
||||
setImmediate(function() {
|
||||
process.nextTick(function() {
|
||||
// For the DOM to be updated.
|
||||
setImmediate(done);
|
||||
process.nextTick(done);
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue