From 2a044e5715f7ed8a7162d0c25eb01fab439005cf Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 5 Jan 2019 04:01:45 -0500 Subject: [PATCH] Support replacing content in downloaded replays --- js/replay-embed.js | 4 ++++ 1 file changed, 4 insertions(+) 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();