Neighbourhood.omg.lol/wwwroot/js/csharp.js

19 lines
406 B
JavaScript
Raw Normal View History

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