Skip to content

Commit

Permalink
fixed issue sembrestels#12 from original project
Browse files Browse the repository at this point in the history
  • Loading branch information
aongaro committed Apr 20, 2016
1 parent 64768c2 commit fca7bcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ results

npm-debug.log
node_modules
bower_components
2 changes: 1 addition & 1 deletion qr-scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ angular.module('qrScanner', ["ng"]).directive('qrScanner', ['$interval', '$windo

element.bind('$destroy', function() {
if ($window.localMediaStream) {
$window.localMediaStream.stop();
$window.localMediaStream.getVideoTracks()[0].stop();
}
if (stopScan) {
$interval.cancel(stopScan);
Expand Down
Loading

0 comments on commit fca7bcd

Please sign in to comment.