diff --git a/src/players/Vimeo.js b/src/players/Vimeo.js index 6afaedb..4c8dd9c 100644 --- a/src/players/Vimeo.js +++ b/src/players/Vimeo.js @@ -68,7 +68,7 @@ export default class Vimeo extends Base { postMessage = (method, value) => { if (!this.origin) return let data = JSON.stringify({ method, value }) - return this.iframe.contentWindow.postMessage(data, this.origin) + return this.iframe.contentWindow && this.iframe.contentWindow.postMessage(data, this.origin) } render () { let style = {