libokj commited on
Commit
a582845
·
verified ·
1 Parent(s): c003572

Update panel.js

Browse files
Files changed (1) hide show
  1. panel.js +0 -1
panel.js CHANGED
@@ -3,7 +3,6 @@ function executeScriptFormatter(cell, formatterParams, onRendered) {
3
  const shadowRoot = cell.getElement().getRootNode();
4
  if (shadowRoot instanceof ShadowRoot) {
5
  const script = cell.getElement().querySelector('script');
6
- console.log('script:', script);
7
  if (script) {
8
  // Replace "document." with "shadowRoot." in the script code
9
  const scriptCode = script.innerText.replace(/document\./g, 'shadowRoot.');
 
3
  const shadowRoot = cell.getElement().getRootNode();
4
  if (shadowRoot instanceof ShadowRoot) {
5
  const script = cell.getElement().querySelector('script');
 
6
  if (script) {
7
  // Replace "document." with "shadowRoot." in the script code
8
  const scriptCode = script.innerText.replace(/document\./g, 'shadowRoot.');