Skip to content

Commit

Permalink
fix: trim lizzy strings in browser (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terkwood authored May 13, 2021
1 parent 964cfaf commit 2954f4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion browser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bugout-browser",
"productName": "BUGOUT",
"version": "1.4.2-b",
"version": "1.4.2-c",
"description": "Graphical user interface for BUGOUT Go/Baduk/Weiqi",
"author": "Terkwood <38859656+Terkwood@users.noreply.github.com>",
"homepage": "/~https://github.com/Terkwood/BUGOUT",
Expand Down
8 changes: 3 additions & 5 deletions browser/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1204,11 +1204,9 @@ class App extends Component {
}

let { commands } = this.attachedEngineSyncers[playerIndex];
let commandName = [
"genmove_analyze",
"lz-genmove_analyze",
"genmove",
].find((x) => commands.includes(x));
let commandName = ["genmove_analyze", "genmove"].find((x) =>
commands.includes(x)
);
if (commandName == null) commandName = "genmove";

let responseContent = await (commandName === "genmove"
Expand Down
2 changes: 1 addition & 1 deletion browser/src/modules/enginesyncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class EngineSyncer extends EventEmitter {

this.busy = this.controller.busy;

if (!["lz-genmove_analyze", "genmove_analyze"].includes(command.name)) {
if (!["genmove_analyze"].includes(command.name)) {
try {
res = await getResponse();
if (res.error) return;
Expand Down

0 comments on commit 2954f4b

Please sign in to comment.