11 lines
326 B
TypeScript
11 lines
326 B
TypeScript
import { executeDrawQueue } from "../outputframe-app/injects/dom-helpers";
|
|
|
|
export function createScript(value: string) {
|
|
var script: HTMLScriptElement = document.createElement("script");
|
|
script.setAttribute("async", "");
|
|
script.innerHTML = value;
|
|
|
|
document.body.appendChild(script);
|
|
|
|
executeDrawQueue();
|
|
} |