Support replacing content in downloaded replays

This commit is contained in:
Guangcong Luo
2019-01-05 04:01:45 -05:00
parent 8b02add7bc
commit 2a044e5715

View File

@@ -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();