diff --git a/common/components/MainPage.tsx b/common/components/MainPage.tsx index 729b0fc..f59b4c0 100644 --- a/common/components/MainPage.tsx +++ b/common/components/MainPage.tsx @@ -22,7 +22,6 @@ export class MainPage extends UIX.BaseComponent { @id declare inputPiDigits: HTMLInputElement; @id declare torAddress: HTMLInputElement; - @standalone async createVanityAddress() { const parent = this.torAddress.parentElement!; if (parent.classList.contains("hidden")) @@ -42,7 +41,6 @@ export class MainPage extends UIX.BaseComponent { disposeThread(...threads); } - @standalone async computePI() { const parent = this.inputPiDigits.parentElement!; if (parent.classList.contains("hidden")) @@ -53,5 +51,6 @@ export class MainPage extends UIX.BaseComponent { const pi = await thread.calculatePI(+this.inputPiDigits.value || 10); parent.querySelector("section")!.prepend({pi}) parent.classList.remove("hidden"); + disposeThread(thread); } -} \ No newline at end of file +}