mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48: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 = {}) {
|
||||
// reset if options have changed since last init
|
||||
if (latestOptions && JSON.stringify(latestOptions) !== JSON.stringify(options)) {
|
||||
document.getElementById('hydra-canvas').remove();
|
||||
document.getElementById('hydra-canvas')?.remove();
|
||||
}
|
||||
latestOptions = options;
|
||||
//load and init hydra
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user