mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
wrap runPython in async (#1212)
This commit is contained in:
@@ -26,8 +26,8 @@ function createWidget(interpreter: Interpreter, name: string, code: string, klas
|
||||
this.shadow.appendChild(this.wrapper);
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
interpreter.runButDontRaise(this.code);
|
||||
async connectedCallback() {
|
||||
await interpreter.runButDontRaise(this.code);
|
||||
this.proxyClass = interpreter.globals.get(this.klass);
|
||||
this.proxy = this.proxyClass(this);
|
||||
this.proxy.connect();
|
||||
|
||||
Reference in New Issue
Block a user