Skip to content

Commit

Permalink
fix(PSVAMB-4560): Chromecast nested iframes issue (#3899)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladm3 authored and OrenMe committed Nov 13, 2018
1 parent 7054160 commit 62ca0b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/Chromecast/resources/sender/chromecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
this.isInIframeApi = false;
} catch ( e ) {
window[ '__onGCastApiAvailable' ] = this.toggleCastButton.bind( this );
kWidget.appendScriptUrl( this.CAST_SENDER_V3_URL );
// PSVAMB-4560
// For some reason, Chrome appends script to a player's iframe parent document unless specified explicitly
kWidget.appendScriptUrl( this.CAST_SENDER_V3_URL, null, window.document );
this.isInIframeApi = true;
}
} else {
Expand Down

0 comments on commit 62ca0b9

Please sign in to comment.