Gordon Pedersen
0c3836b0c8
I was overcomplicating everything trying to reduce the render lag. Just simplify it a bit. It works.
14 lines
No EOL
259 B
JavaScript
14 lines
No EOL
259 B
JavaScript
window.injectCSharp = async function (helper) {
|
|
window.CSHARP = helper
|
|
}
|
|
|
|
|
|
async function delay(t) {
|
|
return new Promise((resolve) => {
|
|
setTimeout(resolve, t);
|
|
});
|
|
}
|
|
|
|
async function removeElementById(id) {
|
|
document.getElementById(id)?.remove()
|
|
} |