diff --git a/js/replay-embed.js b/js/replay-embed.js index c425f40b4..adf6c23f5 100644 --- a/js/replay-embed.js +++ b/js/replay-embed.js @@ -44,6 +44,10 @@ var Replays = { //this.battle.preloadCallback = updateProgress; this.battle.errorCallback = this.errorCallback.bind(this); this.battle.resumeButton = this.resume.bind(this); + + this.setlog(log); + }, + setlog: function (log) { this.battle.setQueue(log.split('\n')); this.battle.reset();