2024-06-11 07:24:52 +00:00
|
|
|
|
window.injectCSharp = async function (helper) {
|
|
|
|
|
window.CSHARP = helper
|
2024-06-18 00:02:03 +00:00
|
|
|
|
console.info("Recieved DotNetReference", window.CSHARP)
|
2024-06-13 04:46:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function delay(t) {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
setTimeout(resolve, t);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function removeElementById(id) {
|
|
|
|
|
document.getElementById(id)?.remove()
|
2024-06-18 00:02:03 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function Dispose(obj) {
|
|
|
|
|
if (obj && typeof obj.Dispose === "function") obj.Dispose()
|
2024-06-11 07:24:52 +00:00
|
|
|
|
}
|