File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,9 @@ __webpack_public_path__ = new URL(scriptUrl.replace(/[^/]+$/, '') +
1717export const activate : ActivationFunction = context => {
1818 return {
1919 renderOutputItem ( outputItem : OutputItem , element : HTMLElement ) {
20- let shadow = element . shadowRoot ;
21- if ( ! shadow ) {
22- shadow = element . attachShadow ( { mode : 'open' } ) ;
23- const root = document . createElement ( 'div' ) ;
24- root . id = 'root' ;
25- shadow . append ( root ) ;
26- }
27- const root = shadow . querySelector < HTMLElement > ( '#root' ) ! ;
28- errorOverlay . wrap ( root , ( ) => {
29- root . innerHTML = '' ;
20+ errorOverlay . wrap ( element , ( ) => {
3021 const cellOutputContainer : HTMLDivElement = document . createElement ( 'div' ) ;
31- root . appendChild ( cellOutputContainer ) ;
22+ element . appendChild ( cellOutputContainer ) ;
3223 render ( {
3324 container : cellOutputContainer ,
3425 mimeType : outputItem . mime ,
You can’t perform that action at this time.
0 commit comments