mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
hotfix: hydra-canvas might already be removed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user