Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #116 from alexstojda/bugFixSprintReader
Browse files Browse the repository at this point in the history
[#85] Fixes Sprint Reader null text selection
  • Loading branch information
Cyberunner23 committed Apr 23, 2019
2 parents 665041e + b5eebf8 commit 7d3204e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/assets/bundle.js
Expand Up @@ -263,7 +263,7 @@ function getLeadParagraph() {
// If fewer than two characters are highlighted, returns the text of the first paragraph.
bridge.registerListener( "getTextSelection", function( payload ) {
var text = window.getSelection().toString().trim();
if (text.length < 2 && payload.purpose === "share") {
if (text.length < 2 && payload.purpose === "share" | payload.purpose === "sprint") {
text = getLeadParagraph();
}
if (text.length > 5000) {
Expand Down

0 comments on commit 7d3204e

Please sign in to comment.