diff --git a/web/components/panel_html.ts b/web/components/panel_html.ts index b409ddae..975153f5 100644 --- a/web/components/panel_html.ts +++ b/web/components/panel_html.ts @@ -90,9 +90,14 @@ function updateHeight() { } } -function loadJsByUrl(url) { +function loadJsByUrl(url,integrity=null) { const script = document.createElement("script"); script.src = url; + if(integrity){ + script.integrity=integrity; + script.crossorigin="anonymous"; + } + return new Promise((resolve) => { script.onload = resolve; @@ -104,4 +109,4 @@ function loadJsByUrl(url) {
-