File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,19 @@ import {Context} from "./context.js"
33import { Shell } from "./parts/shell.js"
44import { apply } from "../base/helpers/apply.js"
55import { mixin } from "../base/helpers/mixin.js"
6+ import { isDeno , isNode } from "../tools/supports.js"
7+ import { SlateView } from "./parts/slate_view_element.js"
68import { prepare_light_view } from "./units/light_view.js"
79import { prepare_shadow_view } from "./units/shadow_view.js"
10+ import { register_to_dom } from "../base/helpers/register_to_dom.js"
811import { prepare_light_component } from "./units/light_component.js"
912import { prepare_shadow_component } from "./units/shadow_component.js"
1013import { BaseElementClass , BaseElementClasses } from "../base/element.js"
1114import { prepare_shadow_componentify } from "./units/shadow_componentify.js"
1215
16+ if ( ! isNode ( ) && ! isDeno ( ) )
17+ register_to_dom ( { SlateView} , { soft : true } )
18+
1319export class Nexus < C extends Context > extends Shell < C > {
1420 lightComponent : ReturnType < typeof prepare_light_component < C > >
1521 shadowComponent : ReturnType < typeof prepare_shadow_component < C > >
Original file line number Diff line number Diff line change @@ -17,5 +17,3 @@ export class SlateView extends HTMLElement {
1717 }
1818}
1919
20- register_to_dom ( { SlateView} , { soft : true } )
21-
You can’t perform that action at this time.
0 commit comments