The requestVideoFrame polyfill has been updated to the latest release, which should resolve some SSR framework issues.

This commit is contained in:
Richard Davey 2024-06-06 15:48:49 +01:00
parent 0a169a6ab6
commit 9723414a16

View file

@ -1,6 +1,6 @@
// From https://github.com/ThaUnknown/rvfc-polyfill
if (HTMLVideoElement && !('requestVideoFrameCallback' in HTMLVideoElement.prototype) && 'getVideoPlaybackQuality' in HTMLVideoElement.prototype)
if (typeof HTMLVideoElement !== 'undefined' && !('requestVideoFrameCallback' in HTMLVideoElement.prototype) && 'getVideoPlaybackQuality' in HTMLVideoElement.prototype)
{
HTMLVideoElement.prototype._rvfcpolyfillmap = {}
HTMLVideoElement.prototype.requestVideoFrameCallback = function (callback) {