Skip to content

Commit 7ed9eff

Browse files
committed
#1 Attempting to address some observations made by Diego.
1 parent 74d4738 commit 7ed9eff

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

components/Timer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565
},
6666
incrementTime() {
6767
this.remainingTime = --this.remainingTime
68-
if (this.remainingTime > this.timeLimit) {
68+
if (this.remainingTime >= this.timeLimit) {
6969
this.stopTimer()
7070
}
7171
},

pages/index.vue

+9-12
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
multi-line
102102
vertical
103103
>
104+
<!-- eslint-disable-next-line -->
104105
<span v-html="snackbarText"></span>
105106
<v-btn text @click="snackbar = false">
106107
Close
@@ -199,19 +200,15 @@ export default {
199200
onTimeout: this.stopRecording
200201
}
201202
202-
try {
203-
this.recorder = new window.WebAudioRecorder(this.input, options)
203+
this.recorder = new window.WebAudioRecorder(this.input, options)
204204
205-
this.recorder.setOptions({
206-
timeLimit: this.TIME_LIMIT,
207-
encodeAfterRecord: ENCODE_AFTER_RECORD,
208-
mp3: {
209-
bitRate: 160
210-
}
211-
})
212-
} catch (e) {
213-
console.warn('Exception caught', e)
214-
}
205+
this.recorder.setOptions({
206+
timeLimit: this.TIME_LIMIT,
207+
encodeAfterRecord: ENCODE_AFTER_RECORD,
208+
mp3: {
209+
bitRate: 160
210+
}
211+
})
215212
})
216213
}
217214
},

0 commit comments

Comments
 (0)