2023-10-03 12:16:33 +00:00
|
|
|
function processClick(e) {
|
|
|
|
const dataEl = e.target.closest("[data-ref]");
|
|
|
|
syscall(
|
|
|
|
"system.invokeFunction",
|
|
|
|
"index.navigateToMention",
|
|
|
|
dataEl.getAttribute("data-ref"),
|
|
|
|
).catch(console.error);
|
|
|
|
}
|
|
|
|
|
|
|
|
document.getElementById("link-ul").addEventListener("click", processClick);
|
2023-10-09 18:39:03 +00:00
|
|
|
document.getElementById("hide-button").addEventListener("click", () => {
|
|
|
|
syscall("system.invokeFunction", "index.toggleMentions").catch(console.error);
|
|
|
|
});
|
|
|
|
|
|
|
|
document.getElementById("reload-button").addEventListener("click", () => {
|
|
|
|
syscall("system.invokeFunction", "index.renderMentions").catch(
|
|
|
|
console.error,
|
|
|
|
);
|
2023-10-03 12:16:33 +00:00
|
|
|
});
|