mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-14 13:47:16 +02:00
Fixed the time string conversion call in the linkifyTimestamps method to ensure the this context is correctly referenced
This commit is contained in:
parent
07432cc26c
commit
d947fbfe3b
@ -120,7 +120,7 @@ export default {
|
||||
const timeRegex = /\b((\d{1,2}:)?\d{1,2}:\d{2})\b/g
|
||||
|
||||
return htmlString.replace(timeRegex, (match) => {
|
||||
const totalSeconds = timeStringToSeconds(match)
|
||||
const totalSeconds = this.timeStringToSeconds(match)
|
||||
if (totalSeconds !== null) {
|
||||
return `<a href="#" class="timestamp-link" data-time-seconds="${totalSeconds}">${match}</a>`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user