Skip to content

Commit

Permalink
Merge pull request #19986 from code-dot-org/resources-tab-add-firehouse
Browse files Browse the repository at this point in the history
Tighten restriction checks on under app video click
  • Loading branch information
Erin Peach committed Jan 13, 2018
2 parents 5d8f778 + 9fe9aff commit d84fbf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/src/StudioApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,7 @@ StudioApp.prototype.configureDom = function (config) {
// Temporarily attach an event listener to log clicks
// Logs the type of app and the ids of the puzzle
var videoThumbnail = document.getElementsByClassName('video_thumbnail');
if (videoThumbnail[0]){
if (videoThumbnail[0] && (config.app === 'gamelab' || config.app === 'applab')){
videoThumbnail[0].addEventListener('click', () => {
firehoseClient.putRecord(
'analysis-events',
Expand Down

0 comments on commit d84fbf9

Please sign in to comment.