Skip to content

Commit

Permalink
return promise
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKamaev committed Mar 19, 2019
1 parent a9190df commit 1d27ef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video-recorder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export default class VideoRecorder {
_assignEventHandlers (browserJob) {
browserJob.once('start', this._createSafeListener(() => {
this.tempDirectoryInitializedPromise = this._onBrowserJobStart();

return this.tempDirectoryInitializedPromise;
}));

browserJob.once('done', this._createSafeListener(this._onBrowserJobDone));
Expand Down

0 comments on commit 1d27ef8

Please sign in to comment.