Skip to content

Commit

Permalink
⚡ Issue #9 Added return of data after exec methods
Browse files Browse the repository at this point in the history
  • Loading branch information
maverickmishra committed Nov 21, 2017
1 parent a4e5194 commit 870095c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/mediadevices.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ mediaDevices.getSupportedConstraints = function () {
return this._supportedConstraints;
} else {
exec(successConstraints, null, 'Stream', 'getSupportedConstraints', []);
return this._supportedConstraints;
}
};

Expand All @@ -65,6 +66,7 @@ mediaDevices.enumerateDevices = function () {
resolve(that._devices);
} else {
exec(successDevices, null, 'Stream', 'enumerateDevices', []);
resolve(that._devices);
}
});
};
Expand Down

0 comments on commit 870095c

Please sign in to comment.