Skip to content

Commit

Permalink
refactor: Use a different name for player in plugin index page (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben authored and brandonocasey committed Oct 9, 2018
1 parent 2f03d22 commit c117984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/app/templates/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<script src="dist/<%= pluginName %>.js"></script>
<script>
(function(window, videojs) {
var player = window.player = videojs('<%= pluginName %>-player');
var <%= pluginFunctionName %> = window.<%= pluginFunctionName %> = player.<%= pluginFunctionName %>();
var examplePlayer = window.examplePlayer = videojs('<%= pluginName %>-player');
var <%= pluginFunctionName %> = window.<%= pluginFunctionName %> = examplePlayer.<%= pluginFunctionName %>();
}(window, window.videojs));
</script>
</body>
Expand Down

0 comments on commit c117984

Please sign in to comment.