Skip to content

Commit

Permalink
Fix redscreen after going back from a review for canvas renderers too
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Aug 23, 2024
1 parent c5bb09a commit 825e9e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "goban-engine",
"version": "8.3.25",
"version": "8.3.27",
"description": "",
"main": "build/goban-engine.js",
"types": "build/engine/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "goban",
"version": "8.3.25",
"version": "8.3.27",
"description": "",
"main": "build/goban.js",
"types": "build/src/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/Goban/CanvasRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ export class GobanCanvas extends Goban implements GobanCanvasInterface {
this.setTheme(this.getSelectedThemes(), true);
let first_pass = true;
const watcher = this.watchSelectedThemes((themes: GobanSelectedThemes) => {
if (!this.engine) {
return;
}
if (
themes.black === "Custom" ||
themes.white === "Custom" ||
Expand Down

0 comments on commit 825e9e2

Please sign in to comment.