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