You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't have the Web Component check if the CSS and JS exist, and if not inject them in the page.
Looks like the init/display ends up in an endless loop
Because you only trigger on DOMContentLoaded, maybe monitor for (new) scripts with the MutationObserver API
const domLoaded = new Promise<void>((resolve) => {
document.addEventListener("DOMContentLoaded", () => resolve());
});
domLoaded.then(() => {
// Transform all script / pre tags into cells.
const scripts = document.querySelectorAll(
"script[type='text/notebook-cell'], pre.notebook-cell"
) as NodeListOf<HTMLScriptElement>;
No description provided.
The text was updated successfully, but these errors were encountered: