change javascript startsWith to substring for IE.
This commit is contained in:
parent
088c3f4f07
commit
0436faa139
1 changed files with 1 additions and 1 deletions
|
@ -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> ";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue