Skip to content
Permalink
Browse files

Fixed playback if cookie-consent is blocked by client

  • Loading branch information...
Sidewinder53 committed Jun 8, 2019
1 parent e7be417 commit 59e6ad9667199a695611a2e9b55d1a69ef6bdd21
Showing with 6 additions and 2 deletions.
  1. +6 −2 dev/assets/js/project_propaganda.js
@@ -313,7 +313,9 @@ function hookBindings() {

// Bind video end to autoplay check
$('#vidPlayer').bind('ended', function () {
_paq.push(['trackEvent', 'Scene', 'Ended', previousVideo.id]);
if (typeof _paq !== "undefined") {
_paq.push(['trackEvent', 'Scene', 'Ended', previousVideo.id]);
}
if ($('#apCheck').prop('checked')) {
console.log('[PropP-DEBUG] [Autoplay] Detected autoplay intent.')
if (jumpCategory) {
@@ -347,7 +349,9 @@ function hookBindings() {
$('#vidNav').hide();

history.pushState(null, null, '?v=' + this.id);
_paq.push(['trackEvent', 'Scene', 'Play', this.id]);
if (typeof _paq !== "undefined") {
_paq.push(['trackEvent', 'Scene', 'Play', this.id]);
}

$('#vidPlayer, #vidFooter, #vidMeta').css('display', 'block');
$('#vidIntro').css('display', 'none');

0 comments on commit 59e6ad9

Please sign in to comment.
You can’t perform that action at this time.