improved layout and fixed bugs introduced new ones
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user