improved layout and fixed bugs introduced new ones

This commit is contained in:
David Meincke
2022-03-27 16:45:51 +02:00
parent 6ed4b80c64
commit d24e605ea9
19 changed files with 318 additions and 101 deletions
+6 -3
View File
@@ -1,13 +1,16 @@
import { executeDrawQueue } from "../outputframe-app/injects/dom-helpers";
export function createScript(value: string) {
export function createScript(value: string, appendToBody: boolean = true): HTMLScriptElement {
var script: HTMLScriptElement = document.createElement("script");
script.setAttribute("async", "");
script.innerHTML = value;
document.body.appendChild(script);
if (appendToBody) {
document.body.appendChild(script);
executeDrawQueue();
}
executeDrawQueue();
return script;
}
export function createHtml(value: string) {