Skip to content

Commit

Permalink
fix: use 'player.ads.skipAd()' instead of 'player.skipAd()' (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
yairans committed Sep 13, 2018
1 parent 8145949 commit d38d930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ad-skip/ad-skip.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class AdSkip extends BaseComponent {
render(): React$Element<any> | void {
if (!this.props.adSkippableState && this.skipSupport) {
return this.getSkipTimeOffset() <= 0 ? (
<a className={[style.btn, style.btnBranded, style.btnSkipAd].join(' ')} onClick={() => this.player.skipAd()}>
<a className={[style.btn, style.btnBranded, style.btnSkipAd].join(' ')} onClick={() => this.player.ads.skipAd()}>
<Text key={'ads.skip_ad'} />
</a>
) : (
Expand Down

0 comments on commit d38d930

Please sign in to comment.