diff --git a/src/Goban/SVGRenderer.ts b/src/Goban/SVGRenderer.ts index 2453c0f6..87526632 100644 --- a/src/Goban/SVGRenderer.ts +++ b/src/Goban/SVGRenderer.ts @@ -210,6 +210,9 @@ export class SVGRenderer extends Goban implements GobanSVGInterface { 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" ||