add missing return to fix vertical text mode

This commit is contained in:
siikamiika 2019-10-16 23:49:40 +03:00
parent 16521fec93
commit 5b98f3ea6e

View File

@ -233,7 +233,7 @@ class TextSourceRange {
const style = window.getComputedStyle(element);
const writingMode = style.writingMode;
if (typeof writingMode === 'string') {
TextSourceRange.normalizeWritingMode(writingMode);
return TextSourceRange.normalizeWritingMode(writingMode);
}
}
return 'horizontal-tb';