Skip to content

Commit

Permalink
investigating why it doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
jbilcke-hf committed Aug 29, 2024
1 parent aa5b0b4 commit cbc48bf
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ export function useQueryStringLoader() {
processUserMessage(message)
} else if (fileUrl) {
console.log(`loading ${fileUrl}`)
if (fileUrl.toLocaleLowerCase().endsWith(".clap")) {
if (fileUrl.toLocaleLowerCase().includes(".clap")) {
console.log(`loading clap file`)
await openClapUrl(fileUrl)
} else {
openScreenplayUrl(fileUrl)
console.log(`loading screenplay file`)
await openScreenplayUrl(fileUrl)
}
} else {
console.log('No clap URL provided')
Expand Down

0 comments on commit cbc48bf

Please sign in to comment.