mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 22:01:38 +08:00
Minor bugfixes
This commit is contained in:
@@ -133,7 +133,7 @@ export default {
|
||||
},
|
||||
release: function() {
|
||||
var tracks = streamRef && streamRef.getVideoTracks();
|
||||
if (tracks.length) {
|
||||
if (tracks && tracks.length) {
|
||||
tracks[0].stop();
|
||||
}
|
||||
streamRef = null;
|
||||
|
||||
Reference in New Issue
Block a user