Skip to content

Commit

Permalink
Fix build error and wrong merge
Browse files Browse the repository at this point in the history
  • Loading branch information
DavinAhn committed Feb 8, 2024
1 parent 65adf28 commit a958a8b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/common/SpeechChunk.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ export default class SpeechChunk {
for (let i = 0; i < this._pieces.length; i += 1) {
const currentPiece = this._pieces[i];
if (currentPiece.nodeIndex >= piece.nodeIndex) {
offsetBeforeNode += currentPiece.text.search(/\S/);
break;
} else {
// piece.length는 piece.text.length와 같다.
Expand Down Expand Up @@ -203,7 +202,6 @@ export default class SpeechChunk {
if (currentWordEndOffset >= offsetAfterEndWordInNode) {
return j;
}
currentWordStartOffset += (words[j].trim().length + 1);
}
return words.length - 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/_Reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export default class _Reader {
const scale = this.getDefaultScale();
const value = 'width=device-width, height=device-height, ' +
`initial-scale=${scale}, maximum-scale=${scale}, minimum-scale=${scale}, ` +
'user-scalable=0';
'user-scalable=0';
let viewport = document.querySelector('meta[name=viewport]');
if (viewport === null) {
viewport = document.createElement('meta');
Expand Down

0 comments on commit a958a8b

Please sign in to comment.