mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-26 20:10:38 +01:00
Switch to setTimeout(fn, 0)
This commit is contained in:
parent
b314642586
commit
be954143c3
1 changed files with 3 additions and 3 deletions
|
@ -46,10 +46,10 @@ try {
|
|||
browser.addCommand('flushReactUpdates', function() {
|
||||
browser.executeAsync(function(done) {
|
||||
// For any events to propogate
|
||||
setImmediate(function() {
|
||||
setTimeout(function() {
|
||||
// For the DOM to be updated.
|
||||
setImmediate(done);
|
||||
})
|
||||
setTimeout(done, 0);
|
||||
}, 0)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue