mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-04 14:30:28 +00:00
Allow special characters in video titles to buffer and timeseek without error
This commit is contained in:
parent
d0849440d2
commit
49d6394487
@ -128,10 +128,11 @@ var VideoParser = function (type, text, options) {
|
||||
xhr.send();
|
||||
|
||||
video.addEventListener('loadedmetadata', async () => {
|
||||
// Use requestAnimationFrame instead of direct style changes
|
||||
requestAnimationFrame(async () => {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('HEAD', video.currentSrc);
|
||||
// Encode the URL to handle spaces and special characters
|
||||
const encodedUrl = encodeURI(video.currentSrc);
|
||||
xhr.open('HEAD', encodedUrl);
|
||||
|
||||
xhr.onload = () => {
|
||||
const observer = new MutationObserver((mutations) => {
|
||||
|
Loading…
Reference in New Issue
Block a user