From 70d818bee49e9f1eeed13cc3c2a169abde001aa5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 24 Mar 2022 20:22:58 +0100 Subject: Handle debugging save/restore in playbacks. --- public/common/play.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public') diff --git a/public/common/play.js b/public/common/play.js index 1ebc9dd..bfd33d2 100644 --- a/public/common/play.js +++ b/public/common/play.js @@ -651,6 +651,9 @@ async function init_replay() { case "resign": s = rules.resign(s, item.role); break; + case "restore": + s = JSON.parse(item.arguments); + break; default: s = rules.action(s, item.role, item.action, item.arguments); break; -- cgit v1.2.3