0313565610
Complete redo of data store Introduces live queries and live templates
18 lines
488 B
JavaScript
18 lines
488 B
JavaScript
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);
|
|
document.getElementById("hide-button").addEventListener("click", function () {
|
|
console.log("HERE")
|
|
syscall(
|
|
"system.invokeFunction",
|
|
"index.toggleMentions",
|
|
).catch(console.error);
|
|
});
|