hotfix: hydra-canvas might already be removed
This commit is contained in:
parent
c373a0473b
commit
d0c68e91dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue