Use Object.assign() for global-namespace export
This commit is contained in:
parent
8d6da965b3
commit
9d01489c95
1 changed files with 1 additions and 1 deletions
|
@ -57,4 +57,4 @@ export function IslandApplet() {
|
|||
return [canvas, seedLabel, generateButton];
|
||||
}
|
||||
|
||||
(globalThis as any).IslandApplet = IslandApplet;
|
||||
Object.assign(globalThis, { IslandApplet });
|
||||
|
|
Loading…
Add table
Reference in a new issue