Fixed the time string conversion call in the linkifyTimestamps method to ensure the this context is correctly referenced

This commit is contained in:
Aemon Cao 2025-06-07 15:13:04 +08:00
parent 07432cc26c
commit d947fbfe3b

View File

@ -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>`
}