diff --git a/src/main/webapp/assets/openaudible.js b/src/main/webapp/assets/openaudible.js index 68befae..6c3e4c7 100644 --- a/src/main/webapp/assets/openaudible.js +++ b/src/main/webapp/assets/openaudible.js @@ -25,7 +25,7 @@ function mp3Link(book, content) { function authorLink(book) { if (!book || !book.author) return ""; - if (book.author_url && book.author_url.startsWith("http")) + if (book.author_url && book.author_url.substring(0, 4) == 'http') { return "" + asString(book.author) + " "; }