Remove write-only attribute on muted property. Fixes FB pause error.

This commit is contained in:
Tim Greiser
2020-06-21 19:53:13 -07:00
parent cb4b36dca0
commit cfd6c157c3

View File

@@ -198,7 +198,7 @@ const viewStateMachine = Machine(
setInterval(() => video.play(), 1000)
// Prevent sites from re-muting the video (Periscope, I'm looking at you!)
Object.defineProperty(video, 'muted', {writable: false, value: false})
Object.defineProperty(video, 'muted', {writable: true, value: false})
const info = { title: document.title }
let divBase = document.querySelector('div.BaseVideo') // This will filter for only periscope videos