Browse Source

get rid of bible links for normal books

imwald
Silberengel 3 months ago
parent
commit
024942f06f
  1. 7
      src/components/Bookstr/BookstrContent.tsx

7
src/components/Bookstr/BookstrContent.tsx

@ -208,9 +208,12 @@ function buildExternalUrl(reference: BookReference, bookType: string, version?: @@ -208,9 +208,12 @@ function buildExternalUrl(reference: BookReference, bookType: string, version?:
return buildSefariaUrl(reference)
} else if (bookType === 'quran') {
return buildQuranComUrl(reference)
} else {
// Default to Bible Gateway for bible and other types
} else if (bookType === 'bible') {
// Only build Bible Gateway URL for bible type
return buildBibleGatewayUrl(reference, version)
} else {
// For other types (like 'book'), return null - no external link
return null
}
}

Loading…
Cancel
Save