mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-21 18:40:24 -05:00
Support replacing content in downloaded replays
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user