mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 19:53:00 -05:00
Allow nodes in shadow roots to be addressed via Element (#1454)
This commit is contained in:
committed by
GitHub
parent
82e5b64bad
commit
d3bcd87cfa
@@ -9,6 +9,7 @@ import type { ProxyMarked } from 'synclink';
|
||||
import * as Synclink from 'synclink';
|
||||
import { showWarning } from './utils';
|
||||
import { define_custom_element } from './plugin';
|
||||
import { deepQuerySelector } from './shadow_roots';
|
||||
|
||||
import { python_package } from './python_package';
|
||||
|
||||
@@ -100,7 +101,7 @@ export class RemoteInterpreter extends Object {
|
||||
*/
|
||||
async loadInterpreter(config: AppConfig, stdio: Synclink.Remote<Stdio & ProxyMarked>): Promise<void> {
|
||||
// TODO: move this to "main thread"!
|
||||
const _pyscript_js_main = { define_custom_element, showWarning };
|
||||
const _pyscript_js_main = { define_custom_element, showWarning, deepQuerySelector };
|
||||
|
||||
this.interface = Synclink.proxy(
|
||||
await loadPyodide({
|
||||
|
||||
Reference in New Issue
Block a user