summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-11 22:25:16 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-12 11:11:17 +0200
commit0f827738c1781726c78e51928cf437d97a878ded (patch)
treebcf467e4c4d1eedb22cf87aea8d7eb20673fecb8
parenta3ae62afd2eecb3831e2483f94d2db6a1d6bb748 (diff)
downloadserver-0f827738c1781726c78e51928cf437d97a878ded.tar.gz
Fix query during detailed replay.
-rw-r--r--public/common/replay.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/common/replay.js b/public/common/replay.js
index 91170bf..0cf6636 100644
--- a/public/common/replay.js
+++ b/public/common/replay.js
@@ -2,6 +2,8 @@
"use strict"
+var replay_query = null
+
;(function () {
/* global view, player, params, roles, game_log, replay_panel */
@@ -171,7 +173,7 @@ function update_replay_view() {
on_update_log(log_start, game_log.length)
}
-function replay_query(query, params) {
+replay_query = function replay_query(query, params) {
on_reply(query, rules.query(replay_state, player, query, params))
}