Skip to content

Commit

Permalink
Fix nit in playbackState example (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored and xxyzzzq committed Feb 15, 2017
1 parent 1cdfcc7 commit f17cd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Expand Up @@ -1149,7 +1149,7 @@ agent to ignore images of media types it does not support.
function pauseAd() {
adFrame.contentWindow.postMessage("pause_ad");
navigator.mediaSession.playbackState = "paused";
navigator.mediaSession.setActionHandler("play", playAd);
navigator.mediaSession.setActionHandler("play", resumeAd);
}

function resumeAd() {
Expand Down

0 comments on commit f17cd16

Please sign in to comment.