alisonmonteiro/youplay

IIFE usage

alisonmonteiro opened this issue · 1 comments

  • Use window.onYouTubeIframeAPIReady instead of onYouTubeIframeAPIReady
  • Put the 'use strict' inside the IIFE
  • Put the autoplay().createScriptElement() call inside the IIFE