diff --git a/content/js/spray-reader.js b/content/js/spray-reader.js index 23e6df3..040ac73 100644 --- a/content/js/spray-reader.js +++ b/content/js/spray-reader.js @@ -129,8 +129,12 @@ function pivot(word){ else{ + word = '.......' + word; + var tail = 22 - (word.length + 7); - word = '.......' + word + ('.'.repeat(tail)); + if(tail > 0) { + word + ('.'.repeat(tail)); + } var start = word.slice(0, word.length/2); var end = word.slice(word.length/2, word.length);