Unwind async/await chains (#957)

*Cleanup several spots where runtime.run() no longer needs to be awaited, now that #928 is merged.
This commit is contained in:
Jeff Glass
2022-11-16 13:42:40 -06:00
committed by GitHub
parent 0b23310a06
commit 7e24289703
7 changed files with 22 additions and 24 deletions

View File

@@ -25,8 +25,8 @@ function createWidget(runtime: Runtime, name: string, code: string, klass: strin
this.shadow.appendChild(this.wrapper);
}
async connectedCallback() {
await runtime.runButDontRaise(this.code);
connectedCallback() {
runtime.runButDontRaise(this.code);
this.proxyClass = runtime.globals.get(this.klass);
this.proxy = this.proxyClass(this);
this.proxy.connect();