mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Ensure webdriver session is closed before exiting
This commit is contained in:
parent
0325a9b836
commit
645fcd60b3
@ -172,11 +172,13 @@
|
||||
browserStream.push(result.browser);
|
||||
});
|
||||
|
||||
resultStream.onEnd(function() {
|
||||
browser.quit();
|
||||
return resultStream.fold([], pushToArray).flatMap(function(value) {
|
||||
return Bacon.fromCallback(function(callback) {
|
||||
browser.quit(function() {
|
||||
callback(value);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
return resultStream.fold([], pushToArray);
|
||||
}
|
||||
|
||||
function createImages(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user