Skip to content

Commit

Permalink
#1 Catching exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
ackzell committed May 30, 2020
1 parent 23ec813 commit 8bfae83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,17 +201,17 @@ export default {
try {
this.recorder = new window.WebAudioRecorder(this.input, options)
this.recorder.setOptions({
timeLimit: this.TIME_LIMIT,
encodeAfterRecord: ENCODE_AFTER_RECORD,
mp3: {
bitRate: 160
}
})
} catch (e) {
console.warn('Exception caught', e)
}
this.recorder.setOptions({
timeLimit: this.TIME_LIMIT,
encodeAfterRecord: ENCODE_AFTER_RECORD,
mp3: {
bitRate: 160
}
})
})
}
},
Expand Down

0 comments on commit 8bfae83

Please sign in to comment.