diff --git a/app/assets/javascripts/player.js b/app/assets/javascripts/player.js index e4323e2..e12606d 100644 --- a/app/assets/javascripts/player.js +++ b/app/assets/javascripts/player.js @@ -2,7 +2,7 @@ function tryCreatePlayer(parentNode, asciicast, options) { function createPlayer() { - asciinema_player.core.CreatePlayer( + asciinema.player.js.CreatePlayer( parentNode, asciicast.url, { diff --git a/app/views/asciicasts/_download.html.erb b/app/views/asciicasts/_download.html.erb index 1ef6f3e..82d894b 100644 --- a/app/views/asciicasts/_download.html.erb +++ b/app/views/asciicasts/_download.html.erb @@ -45,7 +45,7 @@ <body> <div id="player-container"></div> <script> - asciinema_player.core.CreatePlayer('player-container', '/<%= page.asciicast_download_filename %>', { width: <%= page.asciicast_width %>, height: <%= page.asciicast_height %> }); + asciinema.player.js.CreatePlayer('player-container', '/<%= page.asciicast_download_filename %>', { width: <%= page.asciicast_width %>, height: <%= page.asciicast_height %> }); </script> </body> </html>