change javascript startsWith to substring for IE.

This commit is contained in:
openaudible 2018-09-09 12:06:59 -07:00
parent 088c3f4f07
commit 0436faa139

View file

@ -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 "<a href='"+book.author_url + "'>" + asString(book.author) + "</a> ";
}