Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update panel.js
Browse files
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.');
|