mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-24 20:18:34 +00:00
hotfix: hydra-canvas might already be removed
This commit is contained in:
parent
c373a0473b
commit
d0c68e91dc
@ -7,7 +7,7 @@ let hydra;
|
|||||||
export async function initHydra(options = {}) {
|
export async function initHydra(options = {}) {
|
||||||
// reset if options have changed since last init
|
// reset if options have changed since last init
|
||||||
if (latestOptions && JSON.stringify(latestOptions) !== JSON.stringify(options)) {
|
if (latestOptions && JSON.stringify(latestOptions) !== JSON.stringify(options)) {
|
||||||
document.getElementById('hydra-canvas').remove();
|
document.getElementById('hydra-canvas')?.remove();
|
||||||
}
|
}
|
||||||
latestOptions = options;
|
latestOptions = options;
|
||||||
//load and init hydra
|
//load and init hydra
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user