79252909

Date: 2024-12-04 22:43:39
Score: 1
Natty:
Report link

I found the problem:

const { listen } = window.__TAURI__.event.listen;

and then using listen does not work. Instead, using

window.__TAURI__.event.listen('emit_from_rust', (event) => {
  testMsgEl.innerHTML = event.payload;
});

directly in the code just does what I wanted it to do.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DeepKling